3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass(); $a->foo = 'bar'; $v = new SoapVar($a, SOAP_ENC_OBJECT); var_dump($v, $v->enc_value->foo);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SoapVar' not found in /in/hhFhU:5 Stack trace: #0 {main} thrown in /in/hhFhU on line 5
Process exited with code 255.
Output for 5.0.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
object(SoapVar)#2 (2) { ["enc_type"]=> int(301) ["enc_value"]=> object(stdClass)#1 (1) { ["foo"]=> string(3) "bar" } } string(3) "bar"
Output for 5.4.0 - 5.6.28
Fatal error: Class 'SoapVar' not found in /in/hhFhU on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: soapvar in /in/hhFhU on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: soapvar in /in/hhFhU on line 5