3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval(' $closure = function(){/* This template demonstrates a typical piece of code that will execute normally under the default PHPSandbox configuration */ it(); function it() { echo \'This is it\'; } }; if(method_exists($closure, "bindTo")){ $closure = $closure->bindTo(null); } return $closure();');

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.75
8.3.50.0080.00822.80
8.3.40.0100.00718.79
8.3.30.0080.00619.05
8.3.20.0040.00420.21
8.3.10.0070.00418.90
8.3.00.0040.00419.13
8.2.180.0130.00718.66
8.2.170.0150.00622.96
8.2.160.0100.00618.80
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.96
8.2.110.0070.00322.15
8.2.100.0040.00717.84
8.2.90.0000.00817.91
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0060.00317.80
8.2.50.0060.00618.07
8.2.40.0030.00618.22
8.2.30.0000.00819.49
8.2.20.0000.00817.86
8.2.10.0070.00018.08
8.2.00.0080.00317.75
8.1.280.0070.00725.92
8.1.270.0080.00023.61
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0030.00622.47
8.1.230.0040.00821.03
8.1.220.0000.00817.79
8.1.210.0000.00818.90
8.1.200.0100.00017.38
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0040.00421.93
8.1.150.0000.00718.90
8.1.140.0000.00717.30
8.1.130.0030.00317.74
8.1.120.0040.00417.37
8.1.110.0040.00417.34
8.1.100.0000.00817.36
8.1.90.0070.00017.49
8.1.80.0000.00717.38
8.1.70.0080.00017.42
8.1.60.0000.00817.60
8.1.50.0000.00817.59
8.1.40.0040.00417.48
8.1.30.0040.00417.64
8.1.20.0030.00617.69
8.1.10.0050.00217.53
8.1.00.0000.00817.43
8.0.300.0080.00019.98
8.0.290.0060.00316.75
8.0.280.0000.00718.41
8.0.270.0030.00517.14
8.0.260.0000.00617.17
8.0.250.0000.00716.98
8.0.240.0000.00916.89
8.0.230.0000.00816.90
8.0.220.0070.00016.86
8.0.210.0040.00416.84
8.0.200.0030.00316.99
8.0.190.0000.00816.90
8.0.180.0050.00217.00
8.0.170.0060.00316.85
8.0.160.0000.00716.92
8.0.150.0040.00416.89
8.0.140.0000.00816.93
8.0.130.0030.00313.43
8.0.120.0050.00316.88
8.0.110.0000.00716.98
8.0.100.0000.00716.97
8.0.90.0000.00716.78
8.0.80.0080.00716.86
8.0.70.0070.00016.85
8.0.60.0040.00417.00
8.0.50.0040.00416.73
8.0.30.0150.00417.12
8.0.20.0110.01317.40
8.0.10.0000.00817.05
8.0.00.0130.01016.90
7.4.330.0050.00015.00
7.4.320.0070.00016.53
7.4.300.0030.00316.41
7.4.290.0040.00416.50
7.4.280.0040.00716.41
7.4.270.0000.00716.53
7.4.260.0050.00516.51
7.4.250.0040.00416.57
7.4.240.0020.00516.54
7.4.230.0000.00716.52
7.4.220.0140.00416.47
7.4.210.0060.01216.54
7.4.200.0070.00016.68
7.4.160.0060.00916.60
7.4.150.0090.00917.40
7.4.140.0140.00617.86
7.4.130.0060.01116.67
7.4.120.0090.01016.65
7.4.110.0040.01216.54
7.4.100.0150.00316.41
7.4.90.0100.00716.69
7.4.80.0150.00919.39
7.4.70.0140.00416.47
7.4.60.0070.01116.49
7.4.50.0040.00416.40
7.4.40.0100.01016.52
7.4.30.0130.00316.50
7.4.00.0090.00615.08
7.3.330.0000.00513.14
7.3.320.0000.00513.12
7.3.310.0020.00516.20
7.3.300.0000.00716.32
7.3.290.0030.01016.29
7.3.280.0090.00916.30
7.3.270.0030.01617.40
7.3.260.0060.01216.42
7.3.250.0080.01216.46
7.3.240.0070.01016.48
7.3.230.0070.01316.45
7.3.210.0070.01016.48
7.3.200.0060.01219.39
7.3.190.0130.00916.54
7.3.180.0110.00416.31
7.3.170.0090.01216.64
7.3.160.0100.01016.61
7.2.330.0100.00716.79
7.2.320.0070.01116.51
7.2.310.0060.01716.87
7.2.300.0120.00616.84
7.2.290.0100.00616.86
7.2.60.0120.00816.20
7.2.00.0080.01219.59
7.1.200.0030.00915.71
7.1.100.0260.00617.50
7.1.70.0100.00717.23
7.1.60.0130.01019.61
7.1.50.0180.01416.72
7.1.00.0070.07322.35
7.0.200.0000.01016.51
7.0.140.0000.07722.00
7.0.60.0070.05719.82
7.0.50.0000.05717.85
7.0.40.0100.05020.15
7.0.30.0200.04720.08
7.0.20.0270.04720.15
7.0.10.0070.06020.24
7.0.00.0030.04320.06
5.6.280.0100.07021.06
5.6.210.0070.07320.43
5.6.200.0070.07318.19
5.6.190.0030.04320.57
5.6.180.0030.08320.50
5.6.170.0430.04720.55
5.6.160.0100.04720.57
5.6.150.0130.07018.22
5.6.140.0030.04018.12
5.6.130.0100.08018.18
5.6.120.0070.05321.04
5.6.110.0070.07020.97
5.6.100.0000.08321.08
5.6.90.0000.08020.96
5.6.80.0100.07320.27
5.5.350.0070.07720.41
5.5.340.0000.05018.00
5.5.330.0130.05020.27
5.5.320.0200.08020.32
5.5.310.0270.05720.26
5.5.300.0100.05318.04
5.5.290.0030.04318.09
5.5.280.0070.04320.84
5.5.270.0030.04020.80
5.5.260.0070.09020.85
5.5.250.0000.04320.71
5.5.240.0230.07720.25
5.4.450.1830.04319.56
5.4.440.2330.05019.52
5.4.430.1730.03319.48
5.4.420.1400.04319.18
5.4.410.0030.04719.06
5.4.400.0000.04019.00
5.4.390.1270.03719.30
5.4.380.1870.02718.95
5.4.370.1830.03718.86
5.4.360.1800.03719.13
5.4.350.1730.03718.84
5.4.340.1800.03019.14
5.4.320.1830.03718.96
5.4.310.1900.03718.83
5.4.300.0400.03719.30
5.4.290.0000.04019.21
5.4.280.0100.03318.86
5.4.270.1670.04719.16
5.4.260.2600.03719.21
5.4.250.1630.03719.20
5.4.240.1900.03019.07
5.4.230.1630.04019.13
5.4.220.1770.04019.25
5.4.210.1730.03319.08
5.4.200.1770.03719.21
5.4.190.1570.03319.13
5.4.180.2030.04718.93
5.4.170.1900.04019.30
5.4.160.1900.03019.13
5.4.150.1630.04019.17
5.4.140.1730.04316.36
5.4.130.1800.04016.49
5.4.120.1600.03716.32
5.4.110.1670.04016.35
5.4.100.1970.04316.45
5.4.90.1970.04016.45
5.4.80.1630.04016.54
5.4.70.1970.04316.54
5.4.60.2030.03716.43
5.4.50.1900.04316.53
5.4.40.1700.03716.22
5.4.30.2000.03316.22
5.4.20.1700.03716.50
5.4.10.1870.04716.22
5.4.00.1730.03315.90

preferences:
41.67 ms | 401 KiB | 5 Q