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(); $a = new Foo; $a->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.0030.01216.50
8.3.50.0140.00316.27
8.3.40.0100.01018.70
8.3.30.0120.00318.55
8.3.20.0090.00020.34
8.3.10.0100.00621.73
8.3.00.0080.00020.34
8.2.180.0120.00316.88
8.2.170.0150.00822.96
8.2.160.0070.01020.20
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0080.00021.05
8.2.120.0070.00726.35
8.2.110.0060.00320.21
8.2.100.0080.00417.84
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0000.00820.41
8.2.30.0070.00021.04
8.2.20.0000.00818.13
8.2.10.0070.00018.07
8.2.00.0050.00217.88
8.1.280.0100.01025.92
8.1.270.0050.00221.78
8.1.260.0000.01526.35
8.1.250.0070.00728.09
8.1.240.0030.00623.94
8.1.230.0110.00020.91
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0100.00017.13
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0050.00318.37
8.1.160.0000.00719.07
8.1.150.0050.00320.69
8.1.140.0040.00419.59
8.1.130.0030.00318.84
8.1.120.0020.00517.40
8.1.110.0040.00417.37
8.1.100.0040.00417.31
8.1.90.0000.00717.29
8.1.80.0040.00417.38
8.1.70.0040.00417.41
8.1.60.0070.00017.62
8.1.50.0040.00817.40
8.1.40.0030.00717.55
8.1.30.0000.00717.68
8.1.20.0020.00517.67
8.1.10.0040.00417.60
8.1.00.0000.00717.54
8.0.300.0070.00018.77
8.0.290.0000.00916.63
8.0.280.0070.00018.39
8.0.270.0000.00717.21
8.0.260.0080.00016.86
8.0.250.0070.00017.00
8.0.240.0070.00316.95
8.0.230.0070.00016.96
8.0.220.0000.00716.86
8.0.210.0040.00416.90
8.0.200.0030.00316.79
8.0.190.0000.00816.94
8.0.180.0040.00416.75
8.0.170.0050.00216.86
8.0.160.0040.00416.90
8.0.150.0050.00316.77
8.0.140.0000.00716.68
8.0.130.0050.00313.26
8.0.120.0000.00716.71
8.0.110.0030.00316.86
8.0.100.0040.00416.82
8.0.90.0040.00416.90
8.0.80.0060.01316.80
8.0.70.0050.00216.88
8.0.60.0040.00416.69
8.0.50.0030.00516.95
8.0.30.0110.00917.11
8.0.20.0110.00917.40
8.0.10.0080.00016.93
8.0.00.0120.00616.62
7.4.330.0030.00215.55
7.4.320.0030.00316.38
7.4.300.0030.00316.63
7.4.290.0050.00316.52
7.4.280.0000.00716.52
7.4.270.0060.00016.41
7.4.260.0070.00316.39
7.4.250.0040.00416.61
7.4.240.0000.00716.37
7.4.230.0030.00316.68
7.4.220.0070.01116.45
7.4.210.0110.00516.48
7.4.200.0030.00416.41
7.4.160.0060.01016.39
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0130.00416.65
7.4.120.0110.01216.56
7.4.110.0060.01316.50
7.4.100.0100.00716.74
7.4.90.0110.01016.54
7.4.80.0180.00019.39
7.4.70.0120.00816.59
7.4.60.0040.01416.51
7.4.50.0090.00616.39
7.4.40.0030.01516.48
7.4.30.0060.01016.60
7.4.00.0060.00615.14
7.3.330.0030.00313.16
7.3.320.0050.00013.24
7.3.310.0030.00316.09
7.3.300.0070.00016.26
7.3.290.0000.00716.29
7.3.280.0050.01216.21
7.3.270.0140.00617.40
7.3.260.0110.00616.45
7.3.250.0110.00816.23
7.3.240.0090.00916.23
7.3.230.0100.00716.29
7.3.210.0090.00916.19
7.3.200.0120.00616.30
7.3.190.0100.00716.33
7.3.180.0060.01116.47
7.3.170.0130.00316.34
7.3.160.0130.00316.32
7.3.10.0070.00716.02
7.3.00.0060.00916.54
7.2.330.0070.01116.71
7.2.320.0070.01016.23
7.2.310.0030.01316.59
7.2.300.0120.00416.55
7.2.290.0100.01716.58
7.2.130.0080.00416.77
7.2.120.0060.01016.73
7.2.110.0070.01016.24
7.2.100.0040.01516.75
7.2.90.0080.00616.52
7.2.80.0030.01016.65
7.2.70.0000.01916.10
7.2.60.0580.00815.75
7.2.50.0070.00715.96
7.2.40.0000.01116.27
7.2.30.0090.00616.51
7.2.20.0030.00716.68
7.2.10.0040.00817.09
7.2.00.0060.00818.02
7.1.250.0030.01015.37
7.1.200.0110.00415.28
7.1.100.0000.01017.50
7.1.70.0000.01017.09
7.1.60.0000.01417.12
7.1.50.0110.00816.84
7.1.40.0000.01116.48
7.1.30.0040.02016.54
7.1.20.0100.00616.70
7.1.10.0000.00816.60
7.1.00.0000.00716.34
7.0.200.0070.00416.69
7.0.190.0100.00516.56
7.0.180.0070.00715.96
7.0.170.0130.00016.12
7.0.160.0090.00616.11
7.0.150.0050.00316.22
7.0.140.0060.01316.19
7.0.130.0000.01016.50
7.0.120.0000.01016.31
7.0.110.0060.00616.15
7.0.100.0040.01116.30
7.0.90.0040.00816.25
7.0.80.0050.00916.25
7.0.70.0070.00716.44
7.0.60.0000.01316.09
7.0.50.0090.00416.53
7.0.40.0030.01515.18
7.0.30.0060.00615.18
7.0.20.0000.00715.18
7.0.10.0070.00315.18
7.0.00.0000.00815.18
5.6.300.0000.04420.57
5.6.290.0030.05320.84
5.6.280.0070.03920.91
5.6.270.0070.03821.07
5.6.260.0030.04320.79
5.6.250.0060.03921.08
5.6.240.0030.07720.94
5.6.230.0030.04720.82
5.6.220.0100.04820.79
5.6.210.0030.05221.04
5.6.200.0000.04820.96
5.6.190.0070.05620.96
5.6.180.0100.06320.87
5.6.170.0070.03721.05
5.6.160.0100.03320.94
5.6.150.0030.05420.98
5.6.140.0030.04121.02
5.6.130.0040.04220.96
5.6.120.0000.04921.02
5.6.110.0100.03820.97
5.6.100.0060.03820.71
5.6.90.0030.04020.81
5.6.80.0030.03720.42
5.6.70.0070.03320.36
5.6.60.0100.03420.29
5.6.50.0030.04020.12
5.6.40.0130.03020.10
5.6.30.0030.04420.18
5.6.20.0100.03120.30
5.6.10.0030.03720.28
5.6.00.0030.04320.19
5.5.380.0060.04517.63
5.5.370.0070.08417.41
5.5.360.0000.04417.61
5.5.350.0030.05517.57
5.5.340.0060.04217.73
5.5.330.0060.03818.10
5.5.320.0030.04518.07
5.5.310.0070.03918.00
5.5.300.0000.04418.00
5.5.290.0060.04117.96
5.5.280.0070.03617.70
5.5.270.0030.04018.01
5.5.260.0070.04118.05
5.5.250.0030.04317.51
5.5.240.0030.04117.56
5.5.230.0000.05717.38
5.5.220.0030.03617.38
5.5.210.0030.04917.43
5.5.200.0000.04917.10
5.5.190.0000.04517.37
5.5.180.0070.03917.36
5.5.160.0030.03817.52
5.5.150.0060.03817.44
5.5.140.0030.06517.35
5.5.130.0070.04517.18
5.5.120.0160.04317.35
5.5.110.0000.04117.36
5.5.100.0000.04217.35
5.5.90.0000.04917.35
5.5.80.0030.06317.08
5.5.70.0070.03717.25
5.5.60.0070.04116.95
5.5.50.0030.03817.36
5.5.40.0000.04516.99
5.5.30.0040.03917.29
5.5.20.0070.03617.26
5.5.10.0030.04317.24
5.5.00.0070.07017.23
5.4.450.0190.03619.53
5.4.440.0030.04419.46
5.4.430.0030.04319.46
5.4.420.0030.04219.45
5.4.410.0090.03119.26
5.4.400.0070.07318.99
5.4.390.0040.03919.26
5.4.380.0040.03918.89
5.4.370.0000.08219.06
5.4.360.0100.04518.98
5.4.350.0000.04318.94
5.4.340.0070.03619.06
5.4.320.0030.03819.08
5.4.310.0030.03719.17
5.4.300.0070.03718.95
5.4.290.0040.03519.23
5.4.280.0000.04119.11
5.4.270.0000.04319.05
5.4.260.0030.04819.20
5.4.250.0000.04319.13
5.4.240.0000.04118.89
5.4.230.0030.04019.13
5.4.220.0030.04519.18
5.4.210.0200.02719.20
5.4.200.0070.03519.19
5.4.190.0060.03919.14
5.4.180.0040.03719.20
5.4.170.0100.06919.13
5.4.160.0070.05919.04
5.4.150.0030.03919.18
5.4.140.0000.05116.50
5.4.130.0030.03416.52
5.4.120.0060.03116.63
5.4.110.0030.03716.80
5.4.100.0030.03416.76
5.4.90.0030.04316.80
5.4.80.0030.03416.44
5.4.70.0000.03716.66
5.4.60.0000.03916.61
5.4.50.0000.06116.70
5.4.40.0060.03416.51
5.4.30.0030.03816.55
5.4.20.0030.03316.37
5.4.10.0090.03216.71
5.4.00.0000.03816.05
5.3.290.0000.03915.18
5.3.280.0000.04215.18
5.3.270.0000.07515.18
5.3.260.0030.04615.18
5.3.250.0030.07115.18
5.3.240.0130.03915.18
5.3.230.0000.04215.18
5.3.220.0100.03215.18
5.3.210.0000.04015.18
5.3.200.0060.05215.18
5.3.190.0030.04015.18
5.3.180.0030.05415.18
5.3.170.0000.04515.18
5.3.160.0100.03515.18
5.3.150.0060.03215.18
5.3.140.0030.03815.18
5.3.130.0000.04315.18
5.3.120.0030.04115.18
5.3.110.0060.03915.18
5.3.100.0000.04515.18
5.3.90.0280.02115.18
5.3.80.0000.04215.18
5.3.70.0030.03415.18
5.3.60.0070.03015.18
5.3.50.0030.03415.18
5.3.40.0000.03815.18
5.3.30.0000.03715.18
5.3.20.0000.03615.18
5.3.10.0170.03015.18
5.3.00.0030.03715.18
5.2.170.0000.03415.18
5.2.160.0000.03115.18
5.2.150.0000.03115.18
5.2.140.0030.02915.18
5.2.130.0030.02615.18
5.2.120.0000.03715.18
5.2.110.0000.03015.18
5.2.100.0000.03115.18
5.2.90.0100.02215.18
5.2.80.0070.02415.18
5.2.70.0070.02615.18
5.2.60.0030.02815.18
5.2.50.0000.03215.18
5.2.40.0040.02615.18
5.2.30.0040.02815.18
5.2.20.0030.02915.18
5.2.10.0100.02015.18
5.2.00.0030.02915.18
5.1.60.0000.02615.18
5.1.50.0070.03415.18
5.1.40.0000.04115.18
5.1.30.0030.02715.18
5.1.20.0030.02815.18
5.1.10.0000.03015.18
5.1.00.0030.02415.18
5.0.50.0000.02415.18
5.0.40.0000.02115.18
5.0.30.0030.03015.18
5.0.20.0000.02515.18
5.0.10.0030.02615.18
5.0.00.0000.03215.18
4.4.90.0030.01315.18
4.4.80.0030.01415.18
4.4.70.0000.01715.18
4.4.60.0000.01615.18
4.4.50.0040.01415.18
4.4.40.0000.02615.18
4.4.30.0030.02615.18
4.4.20.0000.01815.18
4.4.10.0030.01615.18
4.4.00.0030.02315.18
4.3.110.0000.02115.18
4.3.100.0040.01515.18
4.3.90.0030.01615.18
4.3.80.0000.02915.18
4.3.70.0000.02115.18
4.3.60.0060.03215.18
4.3.50.0000.01715.18
4.3.40.0070.04915.18
4.3.30.0070.02415.18
4.3.20.0070.01015.18
4.3.10.0030.01415.18
4.3.00.0000.01915.18

preferences:
65.05 ms | 401 KiB | 5 Q