3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test(stdClass &$obj) { var_dump($obj); $obj = 'lol'; } $o = new stdClass; $o->prop = 'foo'; test($o); var_dump($o);

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.30.0100.00718.05
8.5.20.0100.00820.11
8.5.10.0080.01016.61
8.5.00.0140.00820.07
8.4.180.0090.01122.15
8.4.170.0130.00823.82
8.4.160.0040.00623.82
8.4.150.0070.00516.88
8.4.140.0100.01117.46
8.4.130.0090.00518.82
8.4.120.0150.00424.21
8.4.110.0130.00718.81
8.4.100.0110.00918.86
8.4.90.0050.01522.23
8.4.80.0070.00518.52
8.4.70.0100.00918.84
8.4.60.0150.00718.82
8.4.50.0020.00620.58
8.4.40.0130.00617.41
8.4.30.0100.00720.65
8.4.20.0120.00621.39
8.4.10.0210.00818.19
8.3.300.0120.00920.78
8.3.290.0120.00820.79
8.3.280.0090.01218.10
8.3.270.0110.00916.39
8.3.260.0140.00616.49
8.3.250.0130.00718.73
8.3.240.0050.00417.28
8.3.230.0110.00816.30
8.3.220.0110.00818.84
8.3.210.0050.00918.35
8.3.200.0060.00216.64
8.3.190.0110.00716.86
8.3.180.0120.00618.90
8.3.170.0070.01017.22
8.3.160.0070.00020.86
8.3.150.0000.00817.11
8.3.140.0120.00618.14
8.3.130.0140.00518.13
8.3.50.0090.00918.32
8.2.300.0140.00822.23
8.2.290.0090.01020.46
8.2.280.0040.00420.00
8.2.270.0090.00916.63
8.2.260.0100.01018.15
8.2.250.0140.00718.22
8.1.340.0120.00921.36
8.1.320.0110.00816.11
7.4.330.0190.00716.25

preferences:
42.17 ms | 697 KiB | 5 Q