3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foo(string &$arg) { $arg = 123; } $a = 'abc'; foo($a); var_dump($a); // The int was allowed to returned in a string arg

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.10.0110.00516.48
8.5.00.0100.01419.75
8.4.150.0010.00214.05
8.4.140.0110.01017.61
8.4.130.0130.00818.72
8.4.120.0120.00819.46
8.4.110.0120.00817.84
8.4.100.0120.00917.61
8.4.90.0160.00720.50
8.4.80.0120.00618.57
8.4.70.0090.01020.81
8.4.60.0100.01020.60
8.4.50.0070.00918.57
8.4.40.0120.00319.27
8.4.30.0200.00018.96
8.4.20.0030.00619.48
8.4.10.0060.00319.19
8.3.280.0100.01218.16
8.3.270.0110.00916.63
8.3.260.0070.00316.28
8.3.250.0120.00716.57
8.3.240.0050.00416.51
8.3.230.0050.00316.64
8.3.220.0120.00518.69
8.3.210.0100.00916.66
8.3.200.0050.00416.50
8.3.190.0160.00416.60
8.3.180.0100.00818.56
8.3.170.0060.01217.22
8.3.160.0070.01020.78
8.3.150.0120.00617.23
8.3.140.0030.00520.68
8.3.130.0050.00318.37
8.3.120.0040.00420.91
8.3.110.0030.00516.76
8.3.100.0130.00716.26
8.3.90.0390.00726.77
8.3.80.0410.00626.77
8.3.70.0360.01326.77
8.3.60.0360.01026.77
8.3.50.0400.00626.77
8.3.40.0290.01026.77
8.3.30.0320.00626.77
8.3.20.0340.00426.77
8.3.10.0480.00326.77
8.3.00.0260.01326.77
8.2.290.0140.00516.68
8.2.280.0050.00618.51
8.2.270.0040.00416.50
8.2.260.0040.00416.87
8.2.250.0080.00016.53
8.2.240.0100.00516.66
8.2.230.0130.00620.94
8.2.220.0130.00624.06
8.2.210.0270.00826.77
8.2.200.0200.01626.77
8.2.190.0230.01026.77
8.2.180.0270.01226.77
8.2.170.0390.00426.77
8.2.160.0330.00326.77
8.2.150.0370.00626.77
8.2.140.0280.00926.77
8.2.130.0260.01126.77
8.2.120.0290.01326.77
8.2.110.0420.00826.77
8.2.100.0330.00626.77
8.2.90.0370.00326.77
8.2.80.0240.01726.77
8.2.70.0320.00926.77
8.2.60.0330.00926.77
8.2.50.0320.01026.77
8.2.40.0290.01026.77
8.2.30.0270.01226.77
8.2.20.0350.00326.77
8.2.10.0320.00626.77
8.2.00.0280.01026.77
8.1.330.0120.00716.08
8.1.320.0150.00417.85
8.1.310.0140.00016.53
8.1.300.0030.00615.96
8.1.290.0250.01526.77
8.1.280.0330.00726.77
8.1.270.0320.01126.77
8.1.260.0380.00526.77
8.1.250.0290.01026.77
8.1.240.0320.00726.77
8.1.230.0300.00726.77
8.1.220.0210.00926.77
8.1.210.0230.00826.77
8.1.200.0280.00326.77
8.1.190.0340.00326.77
8.1.180.0280.00826.77
8.1.170.0340.00426.77
8.1.160.0340.00326.77
8.1.150.0320.00626.77
8.1.140.0290.00926.77
8.1.130.0380.00026.77
8.1.120.0300.00926.77
8.1.110.0300.01526.77
8.1.100.0370.00726.77
8.1.90.0290.01026.77
8.1.80.0270.01126.77
8.1.70.0280.00926.77
8.1.60.0380.00626.77
8.1.50.0370.00626.77
8.1.40.0340.00826.77
8.1.30.0260.01626.77
8.1.20.0320.00926.77
8.1.10.0370.00726.77
8.1.00.0330.01126.77

preferences:
32.71 ms | 403 KiB | 5 Q