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)); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.70.0270.00716.67
8.5.60.0180.00716.73
8.5.50.0180.00416.62
8.5.40.0210.00416.66
8.5.30.0190.00516.50
8.5.20.0240.00616.71
8.5.10.0190.00616.58
8.5.00.0040.00416.64
8.4.220.0060.00319.67
8.4.210.0140.00419.48
8.4.200.0170.00519.42
8.4.190.0150.00319.60
8.4.180.0170.00419.57
8.4.170.0170.00619.69
8.4.160.0160.00619.50
8.4.150.0210.00919.70
8.4.140.0160.00617.47
8.4.130.0160.00517.46
8.4.120.0180.00617.67
8.4.110.0160.00617.76
8.4.100.0170.00317.69
8.4.90.0140.00517.76
8.4.80.0160.00417.94
8.4.70.0170.00317.84
8.4.60.0170.00617.68
8.4.50.0180.00317.67
8.4.40.0150.00417.72
8.4.30.0160.00517.65
8.4.20.0180.00217.60
8.4.10.0160.00517.77
8.3.310.0140.00318.40
8.3.300.0130.00418.18
8.3.290.0160.00418.30
8.3.280.0200.00618.24
8.3.270.0170.00416.46
8.3.260.0160.00216.52
8.3.250.0140.00416.62
8.3.240.0130.00416.50
8.3.230.0130.00516.55
8.3.220.0150.00416.51
8.3.210.0140.00416.47
8.3.200.0160.00316.63
8.3.190.0150.00316.59
8.3.180.0120.00516.74
8.3.170.0190.00416.63
8.3.160.0180.00216.55
8.3.150.0140.00616.62
8.3.140.0170.00216.37
8.3.130.0180.00216.68
8.3.120.0130.00416.74
8.3.110.0130.00416.50
8.3.100.0150.00416.62
8.3.90.0180.00316.49
8.3.80.0150.00416.49
8.3.70.0170.00416.73
8.3.60.0160.00516.59
8.3.50.0180.00316.82
8.3.40.0160.00317.71
8.3.30.0120.00417.75
8.3.20.0130.00317.78
8.3.10.0150.00317.91
8.3.00.0120.00417.88
8.2.310.0190.00317.99

preferences:
43.62 ms | 755 KiB | 5 Q