3v4l.org

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

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.0070.00716.50
8.3.50.0100.01021.87
8.3.40.0080.00818.72
8.3.30.0150.00318.54
8.3.20.0100.00720.16
8.3.10.0000.00823.48
8.3.00.0080.00019.38
8.2.180.0090.00918.55
8.2.170.0110.00422.96
8.2.160.0140.00022.07
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0050.00519.48
8.2.120.0040.00426.35
8.2.110.0060.00320.47
8.2.100.0080.00419.40
8.2.90.0050.00317.75
8.2.80.0040.00418.96
8.2.70.0050.00317.75
8.2.60.0000.00817.63
8.2.50.0030.00517.92
8.2.40.0000.00821.12
8.2.30.0000.00720.54
8.2.20.0040.00417.65
8.2.10.0040.00418.00
8.2.00.0090.00018.15
8.1.280.0120.00425.92
8.1.270.0060.00321.96
8.1.260.0030.00628.09
8.1.250.0070.00028.09
8.1.240.0060.00320.66
8.1.230.0080.00422.20
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0040.00417.35
8.1.180.0080.00019.54
8.1.170.0030.00617.62
8.1.160.0060.00322.02
8.1.150.0040.00418.96
8.1.140.0050.00319.55
8.1.130.0030.00317.66
8.1.120.0000.00717.49
8.1.110.0030.00717.44
8.1.100.0040.00417.50
8.1.90.0030.00517.39
8.1.80.0000.00917.48
8.1.70.0030.00317.42
8.1.60.0060.00317.64
8.1.50.0040.00417.49
8.1.40.0060.00317.57
8.1.30.0040.00417.51
8.1.20.0030.00517.57
8.1.10.0050.00317.52
8.1.00.0000.00717.52
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.44
8.0.270.0040.00417.25
8.0.260.0030.00317.16
8.0.250.0040.00417.04
8.0.240.0030.00516.95
8.0.230.0000.00717.04
8.0.220.0000.00716.83
8.0.210.0040.00416.96
8.0.200.0030.00317.02
8.0.190.0070.00017.11
8.0.180.0040.00416.86
8.0.170.0030.00616.95
8.0.160.0050.00317.06
8.0.150.0040.00416.82
8.0.140.0000.00916.83
8.0.130.0030.00313.30
8.0.120.0050.00516.96
8.0.110.0000.00716.89
8.0.100.0000.00716.94
8.0.90.0000.00716.79
8.0.80.0030.01616.92
8.0.70.0040.00416.91
8.0.60.0050.00217.02
8.0.50.0000.00816.74
8.0.30.0100.00917.06
8.0.20.0120.00917.40
8.0.10.0050.00316.94
8.0.00.0080.01116.77
7.4.330.0000.00616.78
7.4.320.0030.00316.42
7.4.300.0000.00716.61
7.4.290.0030.00316.45
7.4.280.0060.00616.48
7.4.270.0080.00016.61
7.4.260.0030.00316.54
7.4.250.0030.00616.59
7.4.240.0070.00016.56
7.4.230.0070.00016.71
7.4.220.0140.00316.61
7.4.210.0050.00916.54
7.4.200.0030.00316.66
7.4.160.0110.00416.51
7.4.150.0030.01417.40
7.4.140.0140.00517.86
7.4.130.0100.00816.47
7.4.120.0090.01116.56
7.4.110.0030.01316.46
7.4.100.0110.01116.49
7.4.90.0100.00716.50
7.4.80.0090.01219.39
7.4.70.0060.01116.36
7.4.60.0150.00516.55
7.4.50.0030.01016.44
7.4.40.0000.01716.37
7.4.30.0130.00916.40
7.4.00.0000.01215.14
7.3.330.0000.00513.41
7.3.320.0000.00513.24
7.3.310.0070.00016.53
7.3.300.0000.00716.46
7.3.290.0100.00916.43
7.3.280.0100.00716.43
7.3.270.0070.01017.40
7.3.260.0080.01516.57
7.3.250.0110.00816.44
7.3.240.0100.00916.50
7.3.230.0130.00316.61
7.3.210.0060.01216.51
7.3.200.0070.01016.46
7.3.190.0080.01116.41
7.3.180.0070.01316.44
7.3.170.0120.00616.67
7.3.160.0140.00316.64
7.3.10.0210.00016.31
7.3.00.0090.00916.46
7.2.330.0160.00916.60
7.2.320.0130.01016.69
7.2.310.0100.00716.58
7.2.300.0060.01016.74
7.2.290.0060.01816.44
7.2.130.0470.00016.79
7.2.120.0100.01316.61
7.2.110.0220.00816.50
7.2.100.0060.01116.44
7.2.90.0140.00516.64
7.2.80.0190.01216.70
7.2.70.0240.00616.75
7.2.60.0100.01116.76
7.2.50.0040.01117.01
7.2.40.0040.00816.71
7.2.30.0040.00816.79
7.2.20.0030.01217.05
7.2.10.0080.00416.73
7.2.00.0130.00318.02
7.1.250.0130.00415.68
7.1.200.0090.00315.84
7.1.100.0040.01118.14
7.1.70.0000.00717.09
7.1.60.0100.01619.48
7.1.50.0060.01617.00
7.1.00.0030.07722.35
7.0.200.0240.00614.77
7.0.60.0070.07720.00
7.0.50.0170.07717.87
7.0.40.0000.09020.11
7.0.30.0300.07320.21
7.0.20.0300.07320.05
7.0.10.0130.07720.09
7.0.00.0100.05720.32
5.6.280.0070.06321.04
5.6.210.0070.07720.63
5.6.200.0030.05718.15
5.6.190.0100.05320.58
5.6.180.0200.04720.34
5.6.170.0330.07320.44
5.6.160.0100.04320.47
5.6.150.0070.06718.28
5.6.140.0100.07718.19
5.6.130.0070.07318.17
5.6.120.0070.04021.02
5.6.110.0000.09021.00
5.6.100.0130.09021.11
5.6.90.0170.07320.98
5.6.80.0130.08020.29
5.5.350.3200.03320.43
5.5.340.0070.08317.98
5.5.330.0030.09020.33
5.5.320.0230.05720.25
5.5.310.0370.05020.30
5.5.300.0030.05318.05
5.5.290.0070.08017.95
5.5.280.0000.04320.68
5.5.270.0130.08020.97
5.5.260.0070.08020.97
5.5.250.0100.04020.50
5.5.240.0230.04020.16

preferences:
50.62 ms | 401 KiB | 5 Q