3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X {} function test(int $number = null):?X { return null; } echo test(); class Car { protected function startEngine($key = false){ if($key === true) { $runningEngine = true; } print_r($runningEngine); return $runningEngine; } }

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.01116.62
8.3.50.0100.00716.50
8.3.40.0090.00618.59
8.3.30.0060.01018.64
8.3.20.0000.00820.21
8.3.10.0040.00423.71
8.3.00.0050.00323.63
8.2.180.0070.01416.32
8.2.170.0130.00318.96
8.2.160.0060.00922.96
8.2.150.0000.00824.18
8.2.140.0110.00424.66
8.2.130.0090.00020.78
8.2.120.0050.00326.35
8.2.110.0060.00321.09
8.2.100.0110.00017.84
8.2.90.0080.00019.08
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0060.00322.12
8.2.30.0050.00220.62
8.2.20.0000.00717.56
8.2.10.0040.00417.94
8.2.00.0040.00417.80
8.1.280.0120.00325.92
8.1.270.0060.01221.99
8.1.260.0040.00428.09
8.1.250.0100.01028.09
8.1.240.0090.00022.81
8.1.230.0080.00617.71
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0100.00017.10
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.68
8.1.160.0020.00520.64
8.1.150.0000.00718.65
8.1.140.0000.00819.45
8.1.130.0000.00717.64
8.1.120.0040.00417.35
8.1.110.0080.00017.35
8.1.100.0080.00017.38
8.1.90.0040.00417.38
8.1.80.0040.00417.36
8.1.70.0040.00417.35
8.1.60.0070.00017.52
8.1.50.0080.00017.35
8.1.40.0040.00417.52
8.1.30.0000.00817.56
8.1.20.0070.00017.61
8.1.10.0000.00717.48
8.1.00.0000.00817.29
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0000.00818.43
8.0.270.0020.00517.05
8.0.260.0000.00717.14
8.0.250.0040.00416.93
8.0.240.0030.00316.75
8.0.230.0000.00816.70
8.0.220.0000.00616.73
8.0.210.0020.00516.84
8.0.200.0000.00616.83
8.0.190.0040.00416.79
8.0.180.0030.00516.84
8.0.170.0000.00716.80
8.0.160.0000.00716.73
8.0.150.0090.00016.67
8.0.140.0040.00416.64
8.0.130.0000.00813.16
8.0.120.0040.00416.73
8.0.110.0050.00316.67
8.0.100.0050.00316.84
8.0.90.0050.00216.65
8.0.80.0040.01116.80
8.0.70.0000.00716.72
8.0.60.0000.00816.68
8.0.50.0000.00716.64
8.0.30.0120.00617.04
8.0.20.0080.00917.40
8.0.10.0040.00417.01
8.0.00.0100.01016.70
7.4.330.0000.00616.62
7.4.320.0070.00016.44
7.4.300.0070.00016.43
7.4.290.0070.00016.55
7.4.280.0060.00316.54
7.4.270.0000.00716.44
7.4.260.0030.00316.50
7.4.250.0040.00416.43
7.4.240.0060.00216.54
7.4.230.0040.00416.55
7.4.220.0100.01316.40
7.4.210.0080.00616.59
7.4.200.0000.00716.34
7.4.160.0090.00616.50
7.4.150.0100.00617.40
7.4.140.0080.01017.86
7.4.130.0110.00516.41
7.4.120.0140.00316.42
7.4.110.0200.00316.19
7.4.100.0100.00716.49
7.4.90.0030.01516.39
7.4.80.0070.01019.39
7.4.70.0150.00516.34
7.4.60.0080.01116.16
7.4.50.0100.00716.45
7.4.40.0060.00916.58
7.4.30.0090.00916.42
7.3.330.0060.00013.31
7.3.320.0030.00313.07
7.3.310.0030.00416.27
7.3.300.0030.00316.11
7.3.290.0100.00716.20
7.3.280.0110.00516.23
7.3.270.0110.01117.40
7.3.260.0080.00916.53
7.3.250.0090.00916.30
7.3.240.0060.01016.27
7.3.230.0060.01516.57
7.3.210.0080.00816.43
7.3.200.0100.00716.12
7.3.190.0000.01816.25
7.3.180.0100.00716.42
7.3.170.0140.00716.50
7.3.160.0090.00616.50
7.2.330.0060.01216.25
7.2.320.0110.00816.41
7.2.310.0130.00316.38
7.2.300.0090.01216.36
7.2.290.0110.00516.36
7.1.00.0070.07322.45
7.0.00.0100.05320.07
5.6.160.0100.06020.57
5.6.150.0030.08318.23
5.6.140.0130.07318.29
5.6.130.0070.05718.27
5.6.120.0100.04720.99
5.6.110.0000.04721.03
5.6.100.0070.09020.96
5.6.90.0070.05720.99
5.6.80.0130.06320.51
5.5.300.0070.04018.05
5.5.290.0070.06017.96
5.5.280.0030.07320.77
5.5.270.0100.03320.86
5.5.260.0030.04320.77
5.5.250.0130.08020.47
5.5.240.0300.06720.16

preferences:
56 ms | 400 KiB | 5 Q