3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$test = array( 'permissions2', 'this2', 'test'); //$toost = array('permissions2', 'test', 'this2'); //$yo = array_diff($toost, $test); //if (array_diff($toost, $test) || array_diff($test, $toost)) // echo 'false'; //else // echo 'true'; class A { private function foo() { echo "success!\n"; } public function test() { $this->foo(); static::foo(); } } class B extends A { /* foo() will be copied to B, hence its scope will still be A and * the call be successful */ } class C extends A { private function foo() { /* original method is replaced; the scope of the new one is C */ } } $b = new B(); $b->test(); $c = new C(); //$c->test(); //fails

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.00716.75
8.3.50.0060.01021.98
8.3.40.0110.00318.89
8.3.30.0110.00418.77
8.3.20.0040.00420.38
8.3.10.0080.00023.20
8.3.00.0060.00317.63
8.2.180.0040.01118.56
8.2.170.0120.00922.96
8.2.160.0040.01120.18
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00422.33
8.2.110.0060.00322.07
8.2.100.0080.00417.78
8.2.90.0000.00819.20
8.2.80.0030.00618.05
8.2.70.0040.00417.50
8.2.60.0040.00417.91
8.2.50.0030.00618.07
8.2.40.0000.00818.16
8.2.30.0040.00417.99
8.2.20.0030.00617.63
8.2.10.0000.00717.69
8.2.00.0000.00717.65
8.1.280.0130.00725.92
8.1.270.0040.00423.96
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00623.91
8.1.230.0080.00419.00
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0060.00317.39
8.1.180.0040.00418.10
8.1.170.0030.00518.60
8.1.160.0040.00421.96
8.1.150.0000.00718.57
8.1.140.0040.00417.50
8.1.130.0040.00417.93
8.1.120.0000.00717.38
8.1.110.0070.00017.38
8.1.100.0040.00417.42
8.1.90.0050.00317.41
8.1.80.0000.00717.43
8.1.70.0000.00717.35
8.1.60.0000.00817.55
8.1.50.0030.00517.46
8.1.40.0080.00017.50
8.1.30.0000.00817.55
8.1.20.0000.00717.55
8.1.10.0060.00317.58
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0000.00717.30
8.0.280.0000.00718.44
8.0.270.0030.00317.15
8.0.260.0060.00016.75
8.0.250.0070.00016.92
8.0.240.0000.00916.86
8.0.230.0000.00716.82
8.0.220.0040.00316.82
8.0.210.0000.00816.82
8.0.200.0000.00716.78
8.0.190.0080.00016.87
8.0.180.0000.00716.79
8.0.170.0000.00816.84
8.0.160.0030.00316.90
8.0.150.0080.00016.83
8.0.140.0000.00816.68
8.0.130.0040.00413.23
8.0.120.0000.00816.80
8.0.110.0000.00716.77
8.0.100.0050.00316.82
8.0.90.0030.00516.71
8.0.80.0060.01616.77
8.0.70.0000.00716.77
8.0.60.0070.00016.79
8.0.50.0000.00816.66
8.0.30.0120.00617.04
8.0.20.0140.00517.40
8.0.10.0050.00216.99
8.0.00.0110.00716.92
7.4.330.0000.00515.07
7.4.320.0060.00016.38
7.4.300.0030.00316.60
7.4.290.0030.00316.54
7.4.280.0000.00716.59
7.4.270.0000.00716.50
7.4.260.0000.00716.56
7.4.250.0040.00416.45
7.4.240.0040.00316.60
7.4.230.0040.00416.70
7.4.220.0140.01116.47
7.4.210.0090.00716.55
7.4.200.0030.00316.68
7.4.190.0070.00016.67
7.4.160.0070.01016.28
7.4.150.0090.00917.40
7.4.140.0050.01217.86
7.4.130.0040.01416.41
7.4.120.0080.01016.51
7.4.110.0060.01016.56
7.4.100.0100.01016.57
7.4.90.0080.00916.52
7.4.80.0090.01519.39
7.4.70.0070.01016.52
7.4.60.0110.00416.29
7.4.50.0050.00016.66
7.4.40.0060.00922.77
7.4.30.0140.01016.52
7.4.00.0110.00414.75
7.3.330.0050.00013.16
7.3.320.0030.00313.16
7.3.310.0000.00616.25
7.3.300.0000.00716.23
7.3.290.0030.01016.25
7.3.280.0080.01016.20
7.3.270.0120.00617.40
7.3.260.0170.00016.23
7.3.250.0110.00616.27
7.3.240.0070.01416.25
7.3.230.0110.00516.39
7.3.210.0060.00916.19
7.3.200.0080.00819.39
7.3.190.0120.00516.43
7.3.180.0070.00716.13
7.3.170.0090.00616.33
7.3.160.0120.00316.30
7.3.120.0030.01414.66
7.3.110.0100.00514.74
7.3.100.0080.00814.68
7.3.90.0080.00514.84
7.3.80.0040.00914.79
7.3.70.0030.01014.69
7.3.60.0040.00914.55
7.3.50.0070.00514.55
7.3.40.0050.00714.75
7.3.30.0040.00914.58
7.3.20.0080.00516.51
7.3.10.0070.00716.39
7.3.00.0060.00916.55
7.2.330.0070.01116.36
7.2.320.0090.00916.61
7.2.310.0070.01016.74
7.2.300.0090.00616.46
7.2.290.0060.01316.69
7.2.240.0050.00914.82
7.2.230.0020.01215.16
7.2.220.0070.01015.04
7.2.210.0050.00814.98
7.2.200.0050.01015.01
7.2.190.0060.00814.66
7.2.180.0020.01314.77
7.2.170.0040.01314.94
7.2.160.0030.01214.72
7.2.150.0110.00516.74
7.2.140.0080.00916.76
7.2.130.0080.00616.72
7.2.120.0090.00516.74
7.2.110.0060.00916.78
7.2.100.0050.00916.81
7.2.90.0030.01016.71
7.2.80.0080.00816.74
7.2.70.0070.00916.85
7.2.60.0100.00516.81
7.2.50.0040.01016.75
7.2.40.0070.00816.85
7.2.30.0040.00716.97
7.2.20.0080.00816.80
7.2.10.0090.00616.72
7.2.00.0090.00617.36
7.1.330.0030.01015.43
7.1.320.0070.00515.58
7.1.310.0000.01415.62
7.1.300.0090.00415.43
7.1.290.0040.01015.36
7.1.280.0030.01015.59
7.1.270.0080.00715.42
7.1.260.0050.00915.53
7.1.250.0070.00715.51
7.1.200.0000.01415.72
7.1.100.0080.00417.99
7.1.70.0000.00916.88
7.1.60.0130.00919.31
7.1.50.0070.00316.89
7.1.00.0030.07722.48
7.0.200.0030.00716.49
7.0.140.0000.07321.95
7.0.100.0200.07019.88
7.0.90.0130.07720.00
7.0.80.0030.04720.13
7.0.70.0000.08319.93
7.0.60.0030.08719.96
7.0.50.0100.08020.32
7.0.40.0130.07020.10
7.0.30.0130.08320.10
7.0.20.0030.05020.00
7.0.10.0070.08020.14
7.0.00.0130.08020.16
5.6.280.0130.06321.07
5.6.250.0030.04320.52
5.6.240.0000.08320.61
5.6.230.0000.09020.65
5.6.220.0100.07720.74
5.6.210.0030.09020.68
5.6.200.0070.05321.14
5.6.190.0130.08021.04
5.6.180.0100.08020.97
5.6.170.0100.07721.09
5.6.160.0200.06721.02
5.6.150.0170.08021.03
5.6.140.0070.08021.09
5.6.130.0130.08321.03
5.6.120.0170.07321.03
5.6.110.0070.05020.95
5.6.100.0230.06720.95
5.6.90.0030.08321.04
5.6.80.0130.07320.42
5.6.70.0070.06720.43
5.6.60.0030.07720.45
5.6.50.0100.07720.40
5.6.40.0070.07720.41
5.6.30.0070.08020.54
5.6.20.0130.04020.41
5.6.10.0230.04020.47
5.6.00.0100.07020.36
5.5.380.0170.05720.46
5.5.370.0130.07720.40
5.5.360.0030.06020.37
5.5.350.0100.05720.42
5.5.340.0130.08020.74
5.5.330.0070.09020.78
5.5.320.0070.06720.78
5.5.310.0100.04320.80
5.5.300.0170.07320.83
5.5.290.0130.06320.65
5.5.280.0130.04720.82
5.5.270.0070.05020.88
5.5.260.0100.07720.91
5.5.250.0070.08720.54
5.5.240.0100.05720.15
5.5.230.0130.06320.25
5.5.220.0130.06320.27
5.5.210.0000.04320.24
5.5.200.0070.07320.16
5.5.190.0130.06720.09
5.5.180.0100.08320.11
5.5.160.0170.07720.27
5.5.150.0000.09020.00
5.5.140.0100.07020.18
5.5.130.0100.07320.27
5.5.120.0000.08320.19
5.5.110.0100.07020.23
5.5.100.0130.07720.05
5.5.90.0030.08720.11
5.5.80.0070.05020.13
5.5.70.0170.06320.06
5.5.60.0030.08020.16
5.5.50.0130.06320.06
5.5.40.0100.05720.07
5.5.30.0030.07320.12
5.5.20.0130.06720.14
5.5.10.0070.08320.14
5.5.00.0100.07320.03
5.4.450.0100.07019.38
5.4.440.0030.09019.45
5.4.430.0070.08319.35
5.4.420.0100.05019.46
5.4.410.0130.07719.38
5.4.400.0070.07318.88
5.4.390.0100.07019.13
5.4.380.0030.08018.88
5.4.370.0100.06019.16
5.4.360.0030.05719.05
5.4.350.0070.07318.95
5.4.340.0070.07719.12
5.4.320.0070.07719.09
5.4.310.0170.07019.18
5.4.300.0100.04719.20
5.4.290.0070.08018.88
5.4.280.0070.07719.13
5.4.270.0070.08019.22
5.4.260.0130.07319.21
5.4.250.0170.06318.89
5.4.240.0130.07019.13
5.4.230.0070.06318.93
5.4.220.0030.07719.04
5.4.210.0100.06719.11
5.4.200.0130.07018.87
5.4.190.0070.07719.08
5.4.180.0170.03719.08
5.4.170.0130.06719.03
5.4.160.0070.07319.00
5.4.150.0100.07719.13
5.4.140.0100.08316.39
5.4.130.0030.07316.24
5.4.120.0030.07016.30
5.4.110.0070.07016.44
5.4.100.0100.04716.55
5.4.90.0070.07316.48
5.4.80.0130.04316.54
5.4.70.0130.06016.46
5.4.60.0000.06716.37
5.4.50.0100.06716.47
5.4.40.0070.07316.54
5.4.30.0070.03716.45
5.4.20.0000.04716.29
5.4.10.0070.07716.38
5.4.00.0100.06715.86
5.3.290.0130.07314.77
5.3.280.0030.08014.69
5.3.270.0030.07014.74
5.3.260.0070.05714.58
5.3.250.0100.04014.60
5.3.240.0070.07714.56
5.3.230.0100.07314.71
5.3.220.0070.07314.63
5.3.210.0070.07714.70
5.3.200.0130.06714.68
5.3.190.0030.08014.54
5.3.180.0070.07714.63
5.3.170.0030.08014.63
5.3.160.0070.07314.53
5.3.150.0000.05714.63
5.3.140.0070.07314.70
5.3.130.0030.07714.57
5.3.120.0070.07714.67
5.3.110.0070.07014.67
5.3.100.0070.07014.18
5.3.90.0030.07713.94
5.3.80.0100.05313.93
5.3.70.0100.07314.13
5.3.60.0000.07713.93
5.3.50.0070.03713.95
5.3.40.0030.07713.97
5.3.30.0030.07313.91
5.3.20.0100.06713.78
5.3.10.0000.07313.66
5.3.00.0030.05013.57
5.2.170.0130.05311.02
5.2.160.0070.05311.05
5.2.150.0030.06311.17
5.2.140.0000.04311.07
5.2.130.0100.05311.03
5.2.120.0100.03011.15
5.2.110.0070.05711.03
5.2.100.0000.06711.22
5.2.90.0030.06711.16
5.2.80.0030.07711.20
5.2.70.0000.06711.20
5.2.60.0030.06011.11
5.2.50.0030.06011.04
5.2.40.0070.06011.10
5.2.30.0130.05011.09
5.2.20.0100.04711.03
5.2.10.0000.03310.88
5.2.00.0070.04310.81
5.1.60.0070.04310.49
5.1.50.0000.03310.49
5.1.40.0030.02710.49
5.1.30.0030.02710.49
5.1.20.0030.02710.49
5.1.10.0030.02710.49
5.1.00.0030.02310.49
5.0.50.0000.02310.49
5.0.40.0030.01710.49
5.0.30.0030.03310.49
5.0.20.0000.02010.49
5.0.10.0030.01710.49
5.0.00.0000.03010.49
4.4.90.0030.03710.49
4.4.80.0070.03010.49
4.4.70.0000.03710.49
4.4.60.0000.03710.49
4.4.50.0030.02710.49
4.4.40.0070.02310.49
4.4.30.0030.02010.49
4.4.20.0070.01310.49
4.4.10.0000.02010.49
4.4.00.0000.02710.49
4.3.110.0000.02010.49
4.3.100.0030.01310.49
4.3.90.0000.01710.49
4.3.80.0030.02010.49
4.3.70.0000.02010.49
4.3.60.0000.01710.49
4.3.50.0030.01010.49
4.3.40.0000.02310.49
4.3.30.0000.01710.49
4.3.20.0000.01710.49
4.3.10.0000.01710.49
4.3.00.0000.01310.49

preferences:
33.41 ms | 401 KiB | 5 Q