3v4l.org

run code in 300+ PHP versions simultaneously
<?php $somethingUseful = "and in case I don't see you again, goodafternoon, goodevening, and goodnight!"; $closureFunction = function ($str) use ($somethingUseful) { $str = $somethingUseful; return $str; }; echo $closureFunction();

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.70.0120.00316.50
8.3.60.0150.00416.63
8.3.50.0250.00821.16
8.3.40.0150.00018.70
8.3.30.0040.01118.62
8.3.20.0000.00720.21
8.3.10.0050.00223.54
8.3.00.0040.00419.55
8.2.180.0120.00616.75
8.2.170.0120.00322.96
8.2.160.0130.00320.47
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00717.75
8.2.110.0080.00322.13
8.2.100.0120.00017.63
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0030.00517.75
8.2.60.0000.01218.04
8.2.50.0040.00418.07
8.2.40.0070.00019.46
8.2.30.0030.00918.02
8.2.20.0040.00417.75
8.2.10.0070.00018.13
8.2.00.0040.00418.04
8.1.280.0100.00725.92
8.1.270.0030.01320.38
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0030.00622.67
8.1.230.0070.00417.42
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0070.00317.22
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0050.00221.93
8.1.150.0000.00818.99
8.1.140.0050.00517.40
8.1.130.0000.00717.69
8.1.120.0040.00417.52
8.1.110.0040.00417.51
8.1.100.0040.00417.44
8.1.90.0050.00217.45
8.1.80.0000.00717.36
8.1.70.0000.00717.48
8.1.60.0020.00517.51
8.1.50.0040.00417.52
8.1.40.0000.00817.41
8.1.30.0030.00517.48
8.1.20.0000.00817.64
8.1.10.0000.00917.59
8.1.00.0040.00417.49
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0000.00818.24
8.0.270.0030.00317.14
8.0.260.0000.00717.23
8.0.250.0050.00316.95
8.0.240.0030.00316.93
8.0.230.0070.00016.87
8.0.220.0000.00916.91
8.0.210.0000.00816.94
8.0.200.0000.00716.88
8.0.190.0040.00416.93
8.0.180.0050.00316.94
8.0.170.0000.00716.94
8.0.160.0030.00316.93
8.0.150.0000.00816.79
8.0.140.0000.00716.87
8.0.130.0000.00613.36
8.0.120.0040.00416.92
8.0.110.0070.00016.86
8.0.100.0040.00416.79
8.0.90.0050.00316.89
8.0.80.0100.00716.91
8.0.70.0040.00416.91
8.0.60.0040.00416.84
8.0.50.0040.00416.85
8.0.30.0100.00717.15
8.0.20.0080.01417.42
8.0.10.0030.00616.88
8.0.00.0100.00916.83
7.4.330.0050.00015.08
7.4.320.0040.00416.59
7.4.300.0000.00616.39
7.4.290.0030.00316.50
7.4.280.0040.00416.48
7.4.270.0060.00316.38
7.4.260.0000.00816.37
7.4.250.0000.00716.46
7.4.240.0020.00516.40
7.4.230.0030.00316.61
7.4.220.0090.00916.52
7.4.210.0080.00716.64
7.4.200.0000.00716.58
7.4.160.0110.00716.67
7.4.150.0130.00917.40
7.4.140.0070.01617.86
7.4.130.0210.00316.61
7.4.120.0070.01016.47
7.4.110.0030.01516.50
7.4.100.0080.01216.39
7.4.90.0090.00916.61
7.4.80.0100.00719.39
7.4.70.0120.00616.52
7.4.60.0040.01116.50
7.4.50.0050.00316.55
7.4.40.0130.00316.56
7.4.30.0090.00916.34
7.4.00.0070.01015.13
7.3.330.0000.00613.31
7.3.320.0000.00613.43
7.3.310.0040.00416.34
7.3.300.0070.00016.32
7.3.290.0000.00616.30
7.3.280.0110.01016.34
7.3.270.0150.00917.40
7.3.260.0110.00716.50
7.3.240.0180.00716.57
7.3.230.0100.00616.55
7.3.210.0080.01016.56
7.3.200.0090.00616.45
7.3.190.0080.01216.43
7.3.180.0080.00816.60
7.3.170.0120.00916.39
7.3.160.0140.00416.57
7.2.330.0070.01116.59
7.2.320.0160.00816.65
7.2.310.0130.00316.70
7.2.300.0060.00916.59
7.2.290.0120.00916.48
7.2.60.0000.01316.68
7.2.00.0090.00919.52
7.1.200.0120.00415.79
7.1.100.0050.00518.00
7.1.70.0030.00317.13
7.1.60.0070.01419.27
7.1.50.0040.01816.63
7.1.00.0030.07722.40
7.0.200.0070.00416.46
7.0.60.0070.04019.86
7.0.50.0030.04317.88
7.0.40.0070.07320.27
7.0.30.0270.06320.16
7.0.20.0330.07720.15
7.0.10.0100.04320.10
7.0.00.0100.08720.06
5.6.280.0000.05720.89
5.6.210.0030.04020.75
5.6.200.0100.07718.16
5.6.190.0130.06020.39
5.6.180.0270.07720.59
5.6.170.0270.08320.47
5.6.160.0170.04020.47
5.6.150.0030.05318.14
5.6.140.0070.08018.21
5.6.130.0000.07018.18
5.6.120.0100.03721.02
5.6.110.0100.06320.96
5.6.100.0070.08321.04
5.6.90.0170.06021.03
5.6.80.0030.05020.41
5.6.70.2900.04020.28
5.5.350.0100.07320.45
5.5.340.0000.06717.98
5.5.330.0030.04020.41
5.5.320.0070.03720.35
5.5.310.0370.08020.24
5.5.300.0100.07718.01
5.5.290.0070.03717.94
5.5.280.0100.05720.77
5.5.270.0070.08720.73
5.5.260.0030.04020.89
5.5.250.0030.04020.78
5.5.240.0270.05320.26
5.4.450.0200.06319.47
5.4.440.0270.07319.28
5.4.430.0300.07319.65
5.4.420.0270.05019.43
5.4.410.0230.06319.49
5.4.400.0370.06319.27
5.4.390.0130.06318.96
5.4.380.0200.06319.25
5.4.370.0330.04019.23
5.4.360.0270.04719.12
5.4.350.0170.06018.82
5.4.340.0330.04719.11
5.4.320.0270.04719.17
5.4.310.0100.06319.09
5.4.300.0230.05718.81
5.4.290.0300.05019.10
5.4.280.0130.06018.85
5.4.270.0230.04719.11
5.4.260.0100.06019.23
5.4.250.0300.04719.32
5.4.240.0270.05719.10
5.4.230.0170.05718.84
5.4.220.0170.05718.95
5.4.210.0200.05319.11
5.4.200.0270.05019.28
5.4.190.0330.05318.84
5.4.180.0270.05719.31
5.4.170.0230.05319.09
5.4.160.0270.06319.13
5.4.150.0230.05719.28
5.4.140.0230.04716.34
5.4.130.0130.05316.64
5.4.120.0070.06016.48
5.4.110.0300.05716.41
5.4.100.0370.03316.60
5.4.90.0200.04716.43
5.4.80.0270.04716.62
5.4.70.0300.04016.22
5.4.60.0300.06716.25
5.4.50.0030.07716.34
5.4.40.0030.07316.27
5.4.30.0070.03016.38
5.4.20.0030.07016.53

preferences:
66.47 ms | 401 KiB | 5 Q