3v4l.org

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

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.0110.00416.50
8.3.50.0110.00821.94
8.3.40.0070.00718.72
8.3.30.0040.01218.75
8.3.20.0080.00020.38
8.3.10.0070.00023.51
8.3.00.0030.00619.38
8.2.180.0110.01118.14
8.2.170.0070.01022.96
8.2.160.0070.00722.11
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0080.00019.09
8.2.110.0040.00420.38
8.2.100.0110.00018.16
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0030.00618.03
8.2.50.0000.00918.07
8.2.40.0000.00719.38
8.2.30.0030.00520.68
8.2.20.0050.00317.80
8.2.10.0000.00818.02
8.2.00.0000.00817.99
8.1.280.0090.00625.92
8.1.270.0000.00922.06
8.1.260.0040.01126.35
8.1.250.0070.00728.09
8.1.240.0030.00722.60
8.1.230.0000.01117.79
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0080.00017.10
8.1.180.0000.00818.10
8.1.170.0040.00420.07
8.1.160.0040.00422.01
8.1.150.0000.00718.79
8.1.140.0030.00619.53
8.1.130.0000.00717.69
8.1.120.0000.00717.36
8.1.110.0040.00417.46
8.1.100.0000.00717.49
8.1.90.0020.00517.36
8.1.80.0040.00417.34
8.1.70.0070.00017.45
8.1.60.0000.00817.57
8.1.50.0040.00417.42
8.1.40.0000.01117.41
8.1.30.0000.00817.64
8.1.20.0040.00417.62
8.1.10.0000.00717.58
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0000.00718.30
8.0.270.0030.00317.29
8.0.260.0000.00717.31
8.0.250.0000.00716.85
8.0.240.0040.00416.91
8.0.230.0000.00716.85
8.0.220.0040.00416.87
8.0.210.0000.00816.86
8.0.200.0040.00416.93
8.0.190.0040.00416.87
8.0.180.0040.00416.94
8.0.170.0040.00416.83
8.0.160.0040.00416.79
8.0.150.0040.00416.80
8.0.140.0030.00616.81
8.0.130.0000.00613.26
8.0.120.0040.00416.93
8.0.110.0070.00016.83
8.0.100.0040.00416.76
8.0.90.0000.00716.71
8.0.80.0030.01216.82
8.0.70.0090.00016.66
8.0.60.0040.00416.79
8.0.50.0030.00516.75
8.0.30.0130.00717.11
8.0.20.0120.00817.40
8.0.10.0000.00817.04
8.0.00.0110.00716.94
7.4.330.0060.00016.85
7.4.320.0030.00316.54
7.4.300.0000.00616.61
7.4.290.0030.00316.48
7.4.280.0050.00516.50
7.4.270.0000.00716.58
7.4.260.0030.00316.57
7.4.250.0040.00416.57
7.4.240.0040.00316.45
7.4.230.0040.00416.57
7.4.220.0120.00616.62
7.4.210.0030.01216.67
7.4.200.0050.00216.54
7.4.160.0070.00716.41
7.4.150.0120.00817.40
7.4.140.0100.01117.86
7.4.130.0090.00816.44
7.4.120.0110.00616.50
7.4.110.0090.01516.47
7.4.100.0100.01316.51
7.4.90.0100.00716.65
7.4.80.0060.00819.39
7.4.70.0030.01316.45
7.4.60.0090.00616.51
7.4.50.0140.00016.34
7.4.40.0060.01116.63
7.4.30.0170.00616.61
7.4.00.0090.00314.88
7.3.330.0000.00613.38
7.3.320.0050.00013.32
7.3.310.0040.00416.20
7.3.300.0030.00316.16
7.3.290.0060.00816.28
7.3.280.0090.01216.32
7.3.270.0150.00317.40
7.3.260.0110.01216.72
7.3.250.0120.00716.51
7.3.240.0080.00916.51
7.3.230.0030.01316.56
7.3.210.0070.01016.61
7.3.200.0080.00816.43
7.3.190.0160.00316.27
7.3.180.0120.00416.50
7.3.170.0060.01616.27
7.3.160.0090.00616.55
7.2.330.0110.00616.64
7.2.320.0110.00716.71
7.2.310.0140.00716.72
7.2.300.0130.00316.24
7.2.290.0070.01116.43
7.2.00.0190.01419.49
7.1.100.0000.00818.30
7.1.70.0060.00616.96
7.1.60.0000.02419.48
7.1.50.0210.01434.89
7.1.00.0070.07322.42
7.0.200.0320.00414.93
7.0.60.0070.05019.78
7.0.50.0070.08017.85
7.0.40.0130.03720.40
7.0.30.0200.08720.16
7.0.20.0230.05720.07
7.0.10.0030.04320.06
7.0.00.0100.09020.10
5.6.280.0030.06721.11
5.6.210.0100.06720.57
5.6.200.0100.08718.18
5.6.190.0200.07320.63
5.6.180.0400.04020.58
5.6.170.0430.06020.45
5.6.160.0070.03720.56
5.6.150.0070.08318.27
5.6.140.0170.08018.18
5.6.130.0130.06318.18
5.6.120.0070.04321.02
5.6.110.0130.07320.90
5.6.100.0070.08721.01
5.6.90.0100.08021.00
5.6.80.0070.07020.41
5.5.350.4300.04320.41
5.5.340.0000.06717.96
5.5.330.0070.08320.35
5.5.320.0370.03720.35
5.5.310.0300.07720.24
5.5.300.0030.07017.98
5.5.290.0000.06018.08
5.5.280.0000.08720.88
5.5.270.0100.06320.61
5.5.260.0100.04320.84
5.5.250.0030.05320.69
5.5.240.0200.07720.16

preferences:
56.04 ms | 401 KiB | 5 Q