3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class foo { function bar() { echo "this is " . (is_null($this) ? 'not ' : '') . "null\n"; } } foo::bar(); (new foo)->bar();

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.63
8.3.50.0140.00420.98
8.3.40.0120.00318.71
8.3.30.0100.00318.84
8.3.20.0040.00420.15
8.3.10.0080.00023.68
8.3.00.0080.00019.67
8.2.180.0120.00316.38
8.2.170.0130.00922.96
8.2.160.0030.01020.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00917.50
8.2.110.0030.00619.21
8.2.100.0040.00817.63
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0050.00317.37
8.2.60.0040.00417.80
8.2.50.0030.00518.07
8.2.40.0060.00319.25
8.2.30.0040.00419.79
8.2.20.0060.00317.68
8.2.10.0000.00717.91
8.2.00.0060.00317.86
8.1.280.0140.00425.92
8.1.270.0040.00420.38
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.53
8.1.230.0060.00619.17
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.13
8.1.190.0040.00417.00
8.1.180.0060.00318.10
8.1.170.0040.00418.58
8.1.160.0000.00821.99
8.1.150.0020.00518.71
8.1.140.0090.00017.33
8.1.130.0040.00417.56
8.1.120.0040.00417.40
8.1.110.0040.00417.24
8.1.100.0000.00717.26
8.1.90.0040.00417.28
8.1.80.0080.00017.26
8.1.70.0030.00317.20
8.1.60.0040.00417.55
8.1.50.0040.00417.36
8.1.40.0000.00717.41
8.1.30.0050.00317.58
8.1.20.0040.00417.55
8.1.10.0040.00417.55
8.1.00.0080.00017.43
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0030.00318.27
8.0.270.0000.00717.19
8.0.260.0030.00317.19
8.0.250.0040.00416.84
8.0.240.0030.00316.96
8.0.230.0030.00316.88
8.0.220.0030.00316.78
8.0.210.0000.00816.80
8.0.200.0000.00616.99
8.0.190.0050.00216.84
8.0.180.0000.00816.97
8.0.170.0040.00416.80
8.0.160.0000.00716.80
8.0.150.0050.00316.92
8.0.140.0080.00016.73
8.0.130.0000.00513.28
8.0.120.0040.00416.80
8.0.110.0030.00516.88
8.0.100.0030.00516.86
8.0.90.0040.00416.69
8.0.80.0040.01116.81
8.0.70.0070.00016.93
8.0.60.0040.00416.88
8.0.50.0070.00016.93
8.0.30.0090.01017.00
8.0.20.0150.00717.40
8.0.10.0040.00416.89
8.0.00.0060.01316.67
7.4.330.0020.00215.08
7.4.320.0000.00616.51
7.4.300.0030.00316.59
7.4.290.0030.00316.50
7.4.280.0040.00416.48
7.4.270.0030.00316.42
7.4.260.0000.00716.54
7.4.250.0070.00016.41
7.4.240.0040.00416.53
7.4.230.0070.00016.43
7.4.220.0120.00616.47
7.4.210.0110.00416.38
7.4.200.0070.00016.29
7.4.160.0060.00916.49
7.4.150.0290.01917.40
7.4.140.0060.01217.86
7.4.130.0110.01116.41
7.4.120.0070.00916.46
7.4.110.0060.01216.59
7.4.100.0060.01516.38
7.4.90.0130.00316.41
7.4.80.0070.01019.39
7.4.70.0150.00316.45
7.4.60.0040.01416.46
7.4.50.0000.00816.32
7.4.40.0120.00916.70
7.4.30.0090.00916.59
7.4.00.0130.00314.92
7.3.330.0050.00013.21
7.3.320.0020.00213.32
7.3.310.0030.00316.27
7.3.300.0000.00716.16
7.3.290.0020.01216.34
7.3.280.0110.01016.34
7.3.270.0090.00917.40
7.3.260.0090.01516.39
7.3.250.0080.00916.31
7.3.240.0080.00916.33
7.3.230.0160.00616.49
7.3.210.0060.00916.31
7.3.200.0030.01416.52
7.3.190.0070.01016.31
7.3.180.0050.01116.36
7.3.170.0030.01316.36
7.3.160.0090.00916.41
7.3.10.0070.00716.37
7.3.00.0050.00716.49
7.2.330.0030.01316.63
7.2.320.0070.01016.32
7.2.310.0090.00916.32
7.2.300.0080.01016.60
7.2.290.0060.01316.59
7.2.130.0070.00816.84
7.2.120.0080.00316.83
7.2.110.0020.01216.80
7.2.100.0050.00816.70
7.2.90.0080.00816.75
7.2.80.0100.00616.65
7.2.70.0030.01016.77
7.2.60.0040.01016.74
7.2.50.0050.00716.62
7.2.40.0060.00616.79
7.2.30.0080.00716.80
7.2.20.0070.00816.66
7.2.10.0020.01216.67
7.2.00.0030.01317.59
7.1.250.0020.01315.72
7.1.200.0060.00615.74
7.1.100.0040.00717.91
7.1.70.0080.00016.93
7.1.60.0070.01419.27
7.1.50.0070.01716.95
7.1.00.0100.07322.43
7.0.200.0060.00816.77
7.0.60.0230.08320.03
7.0.50.0030.05317.72
7.0.40.0100.05320.27
7.0.30.0500.07020.26
7.0.20.0300.03720.07
7.0.10.0030.06320.24
7.0.00.0200.07020.07
5.6.280.0030.03021.13
5.6.210.0070.07320.71
5.6.200.0070.05018.25
5.6.190.0030.08320.61
5.6.180.0330.08020.55
5.6.170.0230.04720.51
5.6.160.0100.08320.44
5.6.150.0030.08318.18
5.6.140.0130.07318.19
5.6.130.0100.08318.14
5.6.120.0070.08321.14
5.6.110.0070.07321.00
5.6.100.0070.06020.96
5.6.90.0130.08021.01
5.6.80.0070.07720.37
5.5.350.0270.08020.47
5.5.340.0170.07318.00
5.5.330.0100.03320.27
5.5.320.0130.08720.42
5.5.310.0270.08020.37
5.5.300.0100.03718.01
5.5.290.0100.08017.98
5.5.280.0030.08720.76
5.5.270.0130.07720.87
5.5.260.0070.08020.88
5.5.250.0200.06020.71
5.5.240.0230.07020.29
5.4.450.0570.07319.63
5.4.440.0600.05719.61
5.4.430.0500.06319.29
5.4.420.0770.04719.58
5.4.410.0600.06019.48
5.4.400.0530.05718.84
5.4.390.0670.04719.05
5.4.380.0630.05019.15
5.4.370.0530.06019.28
5.4.360.0700.04319.26
5.4.350.0670.05319.14
5.4.340.0800.04319.17
5.4.320.0600.05319.22
5.4.310.0670.04719.14
5.4.300.0570.05718.97
5.4.290.0670.04719.37
5.4.280.0630.05319.24
5.4.270.0830.05719.23
5.4.260.0630.05019.11
5.4.250.0570.05719.13
5.4.240.0630.05019.37
5.4.230.0630.05018.96
5.4.220.0600.05319.07
5.4.210.0800.04719.11
5.4.200.0700.04319.04
5.4.190.0600.05018.84
5.4.180.0630.05319.29
5.4.170.0630.05319.37
5.4.160.0730.04719.20
5.4.150.0600.07019.29
5.4.140.0630.04716.36
5.4.130.0600.05316.41
5.4.120.0530.04716.50
5.4.110.0600.05016.63
5.4.100.0630.04316.53
5.4.90.0530.06016.45
5.4.80.0700.06016.27
5.4.70.0300.03716.44
5.4.60.0370.06016.53
5.4.50.0030.03016.43
5.4.40.0000.06316.42
5.4.30.0070.07316.39
5.4.20.0000.05316.34

preferences:
43.67 ms | 401 KiB | 5 Q