3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bla( $span ){ echo "blah ",$span,"\n"; } function blee(){ $howlong = 'for here and now ...'; call_user_func("bla",$howlong); $f = function()use(&$howlong){ $howlong = "right now ..."; bla( $howlong ); }; echo $howlong,"\n"; return $f; } blee()();

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.3.60.0140.00016.50
8.3.50.0090.01222.05
8.3.40.0070.00718.92
8.3.30.0110.00718.74
8.3.20.0080.00020.39
8.3.10.0040.00423.47
8.3.00.0000.00819.38
8.2.180.0090.01216.38
8.2.170.0140.00322.96
8.2.160.0070.00722.13
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00017.38
8.2.120.0000.00726.35
8.2.110.0070.00321.00
8.2.100.0060.00617.91
8.2.90.0080.00019.12
8.2.80.0050.00317.97
8.2.70.0000.00917.63
8.2.60.0000.00818.03
8.2.50.0060.00318.07
8.2.40.0050.00319.28
8.2.30.0080.00020.57
8.2.20.0030.00517.59
8.2.10.0080.00018.00
8.2.00.0040.00418.04
8.1.280.0090.00625.92
8.1.270.0000.00922.05
8.1.260.0080.00028.09
8.1.250.0070.00728.09
8.1.240.0040.00422.20
8.1.230.0090.00318.94
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0070.00018.10
8.1.170.0040.00420.19
8.1.160.0070.00021.89
8.1.150.0040.00418.89
8.1.140.0080.00019.50
8.1.130.0070.00017.74
8.1.120.0070.00017.47
8.1.110.0000.00717.36
8.1.100.0030.00517.38
8.1.90.0030.00517.46
8.1.80.0080.00017.40
8.1.70.0030.00317.40
8.1.60.0080.00017.47
8.1.50.0040.00417.55
8.1.40.0100.00017.48
8.1.30.0000.00817.59
8.1.20.0040.00417.61
8.1.10.0030.00617.51
8.1.00.0030.00617.44
8.0.300.0040.00420.31
8.0.290.0070.00016.88
8.0.280.0040.00418.43
8.0.270.0000.00717.18
8.0.260.0000.00617.17
8.0.250.0070.00016.93
8.0.240.0040.00416.96
8.0.230.0070.00017.03
8.0.220.0030.00516.80
8.0.210.0040.00416.85
8.0.200.0000.00616.86
8.0.190.0070.00016.85
8.0.180.0040.00416.83
8.0.170.0060.00316.96
8.0.160.0030.00516.89
8.0.150.0030.00316.83
8.0.140.0000.00916.83
8.0.130.0000.00613.38
8.0.120.0040.00416.75
8.0.110.0000.00716.81
8.0.100.0040.00416.77
8.0.90.0000.00816.70
8.0.80.0030.01216.84
8.0.70.0040.00416.91
8.0.60.0000.00716.95
8.0.50.0040.00416.84
8.0.30.0100.00816.93
8.0.20.0130.00717.40
8.0.10.0040.00417.08
8.0.00.0090.01016.64
7.4.330.0030.00316.67
7.4.320.0000.00616.63
7.4.300.0030.00316.45
7.4.290.0070.00016.57
7.4.280.0000.00916.57
7.4.270.0000.00716.61
7.4.260.0050.00216.39
7.4.250.0040.00416.54
7.4.240.0030.00316.45
7.4.230.0070.00016.50
7.4.220.0070.01416.63
7.4.210.0060.00916.46
7.4.200.0070.00016.70
7.4.160.0080.00816.45
7.4.150.0030.01517.40
7.4.140.0130.00617.86
7.4.130.0110.00616.46
7.4.120.0120.00516.48
7.4.110.0180.00416.65
7.4.100.0070.01116.45
7.4.90.0030.01516.45
7.4.80.0100.01019.39
7.4.70.0090.00916.63
7.4.60.0070.01016.49
7.4.50.0040.01116.45
7.4.40.0040.01216.59
7.4.30.0180.00016.46
7.4.00.0070.01014.93
7.3.330.0030.00313.29
7.3.320.0000.00613.26
7.3.310.0040.00416.14
7.3.300.0000.00716.30
7.3.290.0060.00816.29
7.3.280.0120.00616.27
7.3.270.0120.00617.40
7.3.260.0230.00316.55
7.3.250.0110.00616.39
7.3.240.0060.01216.29
7.3.230.0060.01216.59
7.3.210.0070.01016.38
7.3.200.0150.00316.59
7.3.190.0070.01016.52
7.3.180.0120.00916.21
7.3.170.0160.00316.53
7.3.160.0000.02016.22
7.3.10.0080.00716.76
7.3.00.0030.01016.61
7.2.330.0110.00716.61
7.2.320.0100.01316.46
7.2.310.0130.00916.76
7.2.300.0110.00516.68
7.2.290.0080.01416.71
7.2.130.0030.01016.56
7.2.120.0030.00517.00
7.2.110.0060.00916.82
7.2.100.0040.00716.90
7.2.90.0070.00716.89
7.2.80.0060.00617.01
7.2.70.0070.00716.97
7.2.60.0070.00516.79
7.2.50.0090.00316.81
7.2.40.0040.00816.91
7.2.30.0130.00016.89
7.2.20.0030.01116.65
7.2.10.0110.00417.07
7.2.00.0050.00718.16
7.1.250.0030.00715.54
7.1.200.0030.01015.97
7.1.100.0030.01018.34
7.1.70.0000.01317.35
7.1.60.0100.01319.48
7.1.50.0000.02017.00
7.1.00.0070.07022.44
7.0.200.0320.00314.68
7.0.60.0030.06719.86
7.0.50.0100.06317.78
7.0.40.0170.08020.05
7.0.30.0300.07320.13
7.0.20.0200.05020.07
7.0.10.0230.05720.24
7.0.00.0100.08320.16
5.6.280.0100.06321.11
5.6.210.0200.06020.75
5.6.200.0100.08018.27
5.6.190.0070.08020.48
5.6.180.0200.04020.66
5.6.170.0300.08320.43
5.6.160.0030.04020.41
5.6.150.0000.04318.19
5.6.140.0000.08018.15
5.6.130.0070.08318.29
5.6.120.0130.06320.95
5.6.110.0000.04321.04
5.6.100.0170.07320.89
5.6.90.0170.07321.12
5.6.80.0030.04720.41
5.5.350.4000.05320.34
5.5.340.0000.05317.98
5.5.330.0130.03320.31
5.5.320.0400.07020.51
5.5.310.0370.07020.37
5.5.300.0070.03718.01
5.5.290.0030.04318.04
5.5.280.0070.07020.73
5.5.270.0200.07020.84
5.5.260.0070.06020.84
5.5.250.0070.03720.78
5.5.240.0200.07720.27

preferences:
59.27 ms | 401 KiB | 5 Q