3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { echo isset($this) ? 'Instance' : 'Class', "\n"; } } // OK: Foo::bar(); class Baz extends Foo { function test() { Foo::bar(); $this->bar(); } } // Take care: $baz = new Baz; $baz->test(); $baz->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.0130.00916.63
8.3.50.0100.00716.50
8.3.40.0060.01318.57
8.3.30.0040.01118.72
8.3.20.0080.00020.41
8.3.10.0150.00321.85
8.3.00.0070.00022.15
8.2.180.0090.00616.75
8.2.170.0090.00622.96
8.2.160.0130.00320.47
8.2.150.0100.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00420.97
8.2.120.0080.00026.16
8.2.110.0050.00522.21
8.2.100.0070.00417.91
8.2.90.0000.00719.23
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0040.00418.10
8.2.40.0000.00820.52
8.2.30.0040.00421.07
8.2.20.0050.00317.97
8.2.10.0000.00817.96
8.2.00.0000.00717.98
8.1.280.0120.00325.92
8.1.270.0040.00422.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.89
8.1.230.0100.00022.08
8.1.220.0050.00317.79
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0040.00417.11
8.1.180.0000.00718.10
8.1.170.0040.00418.49
8.1.160.0000.00718.97
8.1.150.0040.00420.60
8.1.140.0050.00319.42
8.1.130.0050.00218.82
8.1.120.0000.00717.30
8.1.110.0040.00417.31
8.1.100.0040.00417.43
8.1.90.0040.00417.32
8.1.80.0070.00017.38
8.1.70.0040.00417.29
8.1.60.0040.00417.48
8.1.50.0030.00617.52
8.1.40.0070.00417.54
8.1.30.0000.00917.57
8.1.20.0000.00717.54
8.1.10.0000.00917.46
8.1.00.0000.00717.54
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0000.00717.17
8.0.260.0030.00316.73
8.0.250.0030.00317.00
8.0.240.0060.00316.84
8.0.230.0000.00716.85
8.0.220.0040.00416.81
8.0.210.0030.00316.86
8.0.200.0030.00316.93
8.0.190.0060.00316.72
8.0.180.0040.00416.82
8.0.170.0030.00516.88
8.0.160.0040.00416.89
8.0.150.0030.00316.75
8.0.140.0070.00016.70
8.0.130.0030.00313.21
8.0.120.0000.01016.82
8.0.110.0070.00016.88
8.0.100.0080.00016.86
8.0.90.0070.00016.78
8.0.80.0100.00716.79
8.0.70.0040.00416.88
8.0.60.0040.00416.70
8.0.50.0080.00016.65
8.0.30.0080.00816.80
8.0.20.0110.01017.40
8.0.10.0040.00417.00
8.0.00.0130.01016.64
7.4.330.0050.00015.55
7.4.320.0060.00016.42
7.4.300.0030.00316.51
7.4.290.0030.00316.50
7.4.280.0000.00716.47
7.4.270.0030.00316.61
7.4.260.0070.00016.42
7.4.250.0040.00416.57
7.4.240.0000.00716.39
7.4.230.0000.00716.61
7.4.220.0060.01216.60
7.4.210.0090.00716.64
7.4.200.0000.00716.60
7.4.160.0030.01216.55
7.4.150.0150.00317.40
7.4.140.0140.00517.86
7.4.130.0230.00016.43
7.4.120.0120.00616.52
7.4.110.0100.00616.48
7.4.100.0070.01116.40
7.4.90.0110.00516.51
7.4.80.0030.01619.39
7.4.70.0090.00616.39
7.4.60.0160.00616.38
7.4.50.0100.00416.13
7.4.40.0100.00716.30
7.4.30.0060.00916.44
7.4.00.0030.01314.97
7.3.330.0030.00313.17
7.3.320.0000.00613.19
7.3.310.0000.00716.25
7.3.300.0030.00316.17
7.3.290.0000.00716.10
7.3.280.0090.00816.24
7.3.270.0040.01417.40
7.3.260.0100.01016.33
7.3.250.0100.00716.29
7.3.240.0150.00316.38
7.3.230.0070.01016.48
7.3.210.0080.00816.32
7.3.200.0070.01316.32
7.3.190.0080.00816.18
7.3.180.0110.00716.22
7.3.170.0060.00916.27
7.3.160.0100.01316.29
7.3.10.0090.00616.54
7.3.00.0120.00616.43
7.2.330.0130.00316.72
7.2.320.0100.00916.75
7.2.310.0060.01016.68
7.2.300.0060.01016.48
7.2.290.0140.00616.46
7.2.130.0070.00716.84
7.2.120.0040.00816.56
7.2.110.0060.00616.70
7.2.100.0090.00316.71
7.2.90.0070.00716.71
7.2.80.0070.01017.06
7.2.70.0000.01116.91
7.2.60.0060.00716.75
7.2.50.0070.00416.62
7.2.40.0000.00917.02
7.2.30.0060.00616.78
7.2.20.0000.01517.02
7.2.10.0040.00816.98
7.2.00.0070.00518.22
7.1.250.0070.01015.69
7.1.200.0090.00615.29
7.1.100.0060.00618.17
7.1.70.0140.01715.28
7.1.60.0310.02134.96
7.1.50.0330.01632.67
7.1.40.0430.01732.35
7.1.30.0460.01734.47
7.1.20.0300.03034.38
7.1.10.0150.00914.63
7.1.00.0060.01416.38
7.0.200.0200.01214.75
7.0.190.0190.01314.86
7.0.180.0030.01816.07
7.0.170.0250.01214.48
7.0.160.0250.00716.34
7.0.150.0160.00814.40
7.0.140.0080.01116.18
7.0.130.0100.01116.29
7.0.120.0120.00616.29
7.0.110.0230.01314.18
7.0.100.0200.01516.17
7.0.90.0140.01414.34
7.0.80.0090.01216.14
7.0.70.0120.00916.11
7.0.60.0220.00314.23
7.0.50.0040.01416.45
7.0.40.0590.01316.28
7.0.30.0770.01416.38
7.0.20.0670.01016.32
7.0.10.0330.01014.42
7.0.00.0160.01016.36

preferences:
40.28 ms | 400 KiB | 5 Q