3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function (int $a = null) : int { $a = 1; if ($a == 2) {return $a;} }; $a();

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.0090.00616.75
8.3.50.0080.01021.93
8.3.40.0070.00718.84
8.3.30.0140.00019.02
8.3.20.0050.00220.21
8.3.10.0080.00020.53
8.3.00.0040.00423.40
8.2.180.0090.00616.63
8.2.170.0210.00022.96
8.2.160.0110.00422.16
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00020.73
8.2.120.0000.00726.35
8.2.110.0040.00719.33
8.2.100.0040.00817.84
8.2.90.0000.01219.08
8.2.80.0000.00817.97
8.2.70.0030.00617.88
8.2.60.0080.00017.93
8.2.50.0000.00818.09
8.2.40.0000.00820.53
8.2.30.0070.00019.31
8.2.20.0040.00417.85
8.2.10.0050.00318.00
8.2.00.0040.00418.12
8.1.280.0070.01125.92
8.1.270.0110.00322.19
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00321.24
8.1.230.0040.00817.52
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0070.00317.35
8.1.190.0080.00317.23
8.1.180.0000.00718.10
8.1.170.0060.00318.64
8.1.160.0070.00020.70
8.1.150.0000.00818.93
8.1.140.0040.00419.51
8.1.130.0030.00317.73
8.1.120.0000.00717.30
8.1.110.0070.00017.42
8.1.100.0000.00917.41
8.1.90.0040.00417.35
8.1.80.0080.00017.47
8.1.70.0040.00417.36
8.1.60.0080.00017.50
8.1.50.0060.00317.42
8.1.40.0030.00517.46
8.1.30.0040.00417.62
8.1.20.0000.00717.59
8.1.10.0050.00317.41
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0000.00717.09
8.0.260.0030.00317.09
8.0.250.0030.00316.99
8.0.240.0000.00816.84
8.0.230.0030.00316.95
8.0.220.0070.00016.84
8.0.210.0040.00416.86
8.0.200.0040.00416.89
8.0.190.0000.00717.02
8.0.180.0070.00017.02
8.0.170.0040.00417.01
8.0.160.0070.00016.92
8.0.150.0050.00316.96
8.0.140.0030.00616.83
8.0.130.0000.00513.35
8.0.120.0050.00316.91
8.0.110.0000.00816.97
8.0.100.0040.00416.84
8.0.90.0000.00717.06
8.0.80.0060.00916.92
8.0.70.0020.00516.91
8.0.60.0040.00416.79
8.0.50.0000.00816.79
8.0.30.0070.01017.13
8.0.20.0070.01217.42
8.0.10.0070.00016.91
8.0.00.0100.00716.75
7.4.330.0060.00016.85
7.4.320.0030.00316.60
7.4.300.0060.00016.63
7.4.290.0000.00716.47
7.4.280.0000.00716.63
7.4.270.0060.00016.51
7.4.260.0070.00016.37
7.4.250.0040.00416.56
7.4.240.0030.00316.39
7.4.230.0070.00016.62
7.4.220.0210.00316.67
7.4.210.0070.01016.55
7.4.200.0070.00016.61
7.4.160.0070.01016.39
7.4.150.0070.01317.40
7.4.140.0240.02217.86
7.4.130.0060.01116.53
7.4.120.0090.00816.57
7.4.110.0090.00916.55
7.4.100.0150.00616.29
7.4.90.0100.00616.63
7.4.80.0060.01019.39
7.4.70.0060.00916.45
7.4.60.0150.00616.54
7.4.50.0070.00716.48
7.4.40.0090.00816.63
7.4.30.0060.01216.44
7.4.00.0030.01015.02
7.3.330.0050.00013.30
7.3.320.0000.00613.32
7.3.310.0040.00416.37
7.3.300.0030.00316.40
7.3.290.0040.01316.34
7.3.280.0120.00616.33
7.3.270.0160.00617.40
7.3.260.0100.00716.37
7.3.250.0070.00916.45
7.3.240.0080.00916.52
7.3.230.0070.01016.58
7.3.210.0090.00816.49
7.3.200.0060.01216.55
7.3.190.0090.00616.33
7.3.180.0120.00316.63
7.3.170.0130.01416.50
7.3.160.0120.00616.38
7.2.330.0070.01116.63
7.2.320.0130.00616.46
7.2.310.0170.00016.66
7.2.300.0100.01016.44
7.2.290.0120.00316.73
7.2.60.0030.00716.86
7.1.200.0070.00715.51
7.1.100.0080.01218.23
7.1.70.0020.00517.12
7.1.60.0130.01019.40
7.1.50.0100.00716.87
7.1.00.0070.07322.46
7.0.200.0780.01014.48
7.0.60.0300.07020.01
7.0.50.0100.08017.94
7.0.40.0100.08320.02
7.0.30.0300.08320.11
7.0.20.0300.07720.19
7.0.10.0000.09020.26
7.0.00.0170.05020.29
5.6.280.0070.03020.89
5.6.210.0070.08720.77
5.6.200.0030.04718.19
5.6.190.0030.06020.46
5.6.180.0270.05020.61
5.6.170.0400.06720.47
5.6.160.0030.09320.44
5.6.150.0030.04318.15
5.6.140.0070.08018.14
5.6.130.0170.06318.18
5.6.120.0070.06320.99
5.6.110.0170.07020.94
5.6.100.0100.06320.97
5.6.90.0030.04320.94
5.6.80.0070.05320.36
5.5.350.0230.07020.39
5.5.340.0170.07318.07
5.5.330.0100.08020.25
5.5.320.0600.05320.27
5.5.310.0270.07720.34
5.5.300.0030.07317.95
5.5.290.0000.04318.08
5.5.280.0070.05320.75
5.5.270.0200.06320.96
5.5.260.0100.04020.76
5.5.250.0070.06020.66
5.5.240.0130.03320.07

preferences:
37.88 ms | 401 KiB | 5 Q