3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', true); ini_set('error_reporting', E_ALL); function foo(int $a) { return ++$a; } echo foo(6);

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.01016.63
8.3.50.0140.00016.59
8.3.40.0110.00418.62
8.3.30.0040.01118.37
8.3.20.0070.00020.20
8.3.10.0050.00321.81
8.3.00.0040.00423.66
8.2.180.0090.00616.32
8.2.170.0130.00318.60
8.2.160.0200.00022.96
8.2.150.0040.00425.66
8.2.140.0140.00024.66
8.2.130.0000.00819.64
8.2.120.0040.00426.35
8.2.110.0000.00922.08
8.2.100.0030.00917.91
8.2.90.0040.00419.05
8.2.80.0080.00317.97
8.2.70.0090.00017.38
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0040.00422.27
8.2.30.0030.00520.59
8.2.20.0030.00517.61
8.2.10.0040.00417.88
8.2.00.0000.00717.92
8.1.280.0070.01025.92
8.1.270.0000.01023.78
8.1.260.0090.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0060.00619.23
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.10
8.1.190.0050.00317.10
8.1.180.0050.00518.10
8.1.170.0000.00818.45
8.1.160.0050.00220.50
8.1.150.0030.00518.74
8.1.140.0000.00819.48
8.1.130.0000.00717.48
8.1.120.0030.00317.35
8.1.110.0040.00417.37
8.1.100.0000.00817.34
8.1.90.0040.00317.26
8.1.80.0000.00717.24
8.1.70.0050.00317.35
8.1.60.0100.00017.50
8.1.50.0000.00717.45
8.1.40.0070.00017.27
8.1.30.0040.00417.48
8.1.20.0040.00417.57
8.1.10.0040.00417.45
8.1.00.0040.00417.42
8.0.300.0030.00518.77
8.0.290.0040.00416.58
8.0.280.0040.00418.43
8.0.270.0030.00317.10
8.0.260.0030.00317.05
8.0.250.0000.00616.76
8.0.240.0030.00316.77
8.0.230.0020.00516.84
8.0.220.0000.00716.63
8.0.210.0040.00416.73
8.0.200.0000.00616.75
8.0.190.0000.00816.80
8.0.180.0050.00316.82
8.0.170.0050.00316.78
8.0.160.0050.00316.74
8.0.150.0000.00716.82
8.0.140.0040.00416.75
8.0.130.0030.00313.24
8.0.120.0040.00416.68
8.0.110.0020.00516.65
8.0.100.0000.00716.70
8.0.90.0030.00316.79
8.0.80.0070.01116.80
8.0.70.0040.00416.79
8.0.60.0040.00416.61
8.0.50.0040.00416.57
8.0.30.0070.01217.10
8.0.20.0120.00917.40
8.0.10.0000.00716.81
8.0.00.0070.01416.55
7.4.330.0030.00316.79
7.4.320.0000.00616.49
7.4.300.0030.00316.43
7.4.290.0040.00416.38
7.4.280.0030.00716.43
7.4.270.0030.00316.48
7.4.260.0000.00716.43
7.4.250.0070.00016.40
7.4.240.0000.00716.47
7.4.230.0040.00416.34
7.4.220.0160.00016.42
7.4.210.0050.01416.41
7.4.200.0000.00716.55
7.4.160.0170.00016.66
7.4.150.0160.00317.40
7.4.140.0080.01517.86
7.4.130.0080.01216.40
7.4.120.0100.01016.47
7.4.110.0070.01016.50
7.4.100.0060.01316.37
7.4.90.0060.01616.60
7.4.80.0110.00619.39
7.4.70.0090.00616.58
7.4.60.0070.01016.47
7.4.50.0110.00416.36
7.4.40.0090.00816.60
7.4.30.0090.01316.49
7.4.00.0040.00814.81
7.3.330.0050.00013.09
7.3.320.0050.00013.01
7.3.310.0070.00016.26
7.3.300.0030.00316.23
7.3.290.0070.00016.09
7.3.280.0090.01016.22
7.3.270.0130.00317.40
7.3.260.0180.00016.32
7.3.250.0080.01016.47
7.3.240.0110.00916.49
7.3.230.0120.00916.39
7.3.210.0070.01016.40
7.3.200.0130.00619.39
7.3.190.0160.00616.46
7.3.180.0110.00816.59
7.3.170.0130.00316.29
7.3.160.0040.01216.38
7.2.330.0090.00916.75
7.2.320.0110.00716.68
7.2.310.0130.00316.57
7.2.300.0100.00716.67
7.2.290.0100.00716.70
7.2.80.0000.01016.75
7.2.60.0070.01016.79
7.2.00.0030.01019.38
7.1.200.0060.00615.71
7.1.100.0000.01317.84
7.1.70.0050.00516.88
7.1.60.0090.01619.27
7.1.50.0030.01716.57
7.1.00.0000.08022.37
7.0.200.0030.00316.63
7.0.60.0070.07021.87
7.0.50.0070.08317.93
7.0.40.0100.06020.11
7.0.30.0130.04320.10
7.0.20.0300.04020.16
7.0.10.0100.08720.19
7.0.00.0070.05320.23
5.6.280.0000.03321.10
5.6.210.0130.06320.72
5.6.200.0070.03718.28
5.6.190.0070.05020.55
5.6.180.0270.05020.48
5.6.170.0270.04720.48
5.6.160.0070.06320.48
5.6.150.0070.08018.17
5.6.140.0030.04718.18
5.6.130.0070.04018.15
5.6.120.0100.03720.99
5.6.110.0070.08321.15
5.6.100.0030.06321.02
5.6.90.0100.08021.10
5.6.80.0100.08020.36
5.5.350.0030.08720.43
5.5.340.0070.08317.99
5.5.330.0070.04020.21
5.5.320.0430.03720.35
5.5.310.0170.04320.25
5.5.300.0030.07317.97
5.5.290.0100.07317.98
5.5.280.0070.04720.77
5.5.270.0000.09020.76
5.5.260.0100.07720.87
5.5.250.0030.04320.57
5.5.240.0070.03320.26

preferences:
69.76 ms | 400 KiB | 5 Q