3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &test(): int { $x = 0; try { return $x; } finally { $x = 'test'; } } $x = &test(); var_dump($x);

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.0040.00617.77
8.5.20.0100.00719.98
8.5.10.0110.00916.62
8.5.00.0140.00720.17
8.4.180.0130.01019.70
8.4.170.0120.00921.69
8.4.160.0110.01022.01
8.4.150.0060.00716.88
8.4.140.0140.00817.56
8.4.130.0120.00817.96
8.4.120.0180.00619.08
8.4.110.0190.00719.91
8.4.100.0170.00618.01
8.4.90.0150.00818.23
8.4.80.0270.00817.83
8.4.70.0390.00717.87
8.4.60.0380.00817.77
8.4.50.0380.00717.71
8.4.40.0360.00817.72
8.4.30.0370.00917.74
8.4.20.0420.00817.71
8.4.10.0360.00817.71
8.3.300.0120.01120.77
8.3.290.0100.01120.77
8.3.280.0110.00918.38
8.3.270.0120.00616.75
8.3.260.0090.01016.54
8.3.250.0170.00517.80
8.3.240.0160.00616.58
8.3.230.0140.00416.60
8.3.220.0210.00517.72
8.3.210.0310.00717.31
8.3.200.0260.00617.31
8.3.190.0240.00517.34
8.3.180.0220.00617.37
8.3.170.0280.00717.34
8.3.160.0320.00717.33
8.3.150.0290.00617.37
8.3.140.0300.00517.29
8.3.130.0270.00717.33
8.3.120.0260.00717.29
8.3.110.0290.00717.33
8.3.100.0310.00917.30
8.3.90.0280.00617.33
8.3.80.0260.00617.28
8.3.70.0260.00617.29
8.3.60.0310.00717.26
8.3.50.0260.00517.26
8.3.40.0320.00717.77
8.3.30.0220.00517.76
8.3.20.0260.00717.75
8.3.10.0290.00617.70
8.3.00.0220.00718.16
8.2.300.0100.01020.33
8.2.290.0160.00318.42
8.2.280.0250.00817.27
8.2.270.0280.00517.31
8.2.260.0290.00717.31
8.2.250.0300.00417.34
8.2.240.0270.00617.35
8.2.230.0290.00617.36
8.2.220.0270.00617.31
8.2.210.0260.00717.30
8.2.200.0260.00617.31
8.2.190.0260.00617.27
8.2.180.0250.00517.28
8.2.170.0290.00517.88
8.2.160.0300.00617.86
8.2.150.0290.00517.78
8.2.140.0240.00617.70
8.2.130.0270.00817.71
8.2.120.0320.00617.76
8.2.110.0310.00517.70
8.2.100.0270.00517.66
8.2.90.0270.00717.70
8.2.80.0270.00617.66
8.2.70.0270.00717.77
8.2.60.0270.00517.75
8.2.50.0300.00417.70
8.2.40.0270.00817.65
8.2.30.0290.00617.68
8.2.20.0270.00617.60
8.2.10.0260.00817.69
8.2.00.0270.00617.72
8.1.340.0130.00720.32

preferences:
63.83 ms | 837 KiB | 5 Q