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.0150.00018.43
8.3.50.0160.01321.96
8.3.40.0120.00618.82
8.3.30.0110.00318.72
8.3.20.0040.00418.57
8.3.10.0070.00020.96
8.3.00.0040.00421.80
8.2.180.0090.00616.63
8.2.170.0130.00322.96
8.2.160.0030.01020.38
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0070.00020.91
8.2.110.0100.00021.04
8.2.100.0040.00817.84
8.2.90.0040.00418.98
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0040.00817.68
8.2.50.0040.00418.10
8.2.40.0000.01120.60
8.2.30.0040.00419.80
8.2.20.0050.00217.55
8.2.10.0060.00317.63
8.2.00.0000.00817.57
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0180.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00321.29
8.1.230.0070.00417.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0040.00418.49
8.1.160.0080.00018.87
8.1.150.0050.00318.50
8.1.140.0040.00417.38
8.1.130.0000.00717.71
8.1.120.0040.00417.30
8.1.110.0000.00717.36
8.1.100.0000.00717.30
8.1.90.0000.00717.28
8.1.80.0050.00217.41
8.1.70.0030.00517.42
8.1.60.0080.00017.63
8.1.50.0040.00417.48
8.1.40.0000.00817.45
8.1.30.0040.00417.59
8.1.20.0040.00717.66
8.1.10.0030.00617.56
8.1.00.0030.00617.56
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00818.45
8.0.270.0070.00017.28
8.0.260.0000.00716.83
8.0.250.0040.00416.95
8.0.240.0080.00016.89
8.0.230.0070.00016.79
8.0.220.0000.00616.89
8.0.210.0000.01016.86
8.0.200.0000.00616.94
8.0.190.0000.00916.93
8.0.180.0000.00716.76
8.0.170.0050.00316.82
8.0.160.0050.00316.89
8.0.150.0000.00716.74
8.0.140.0080.00016.78
8.0.130.0000.00613.33
8.0.120.0040.00416.82
8.0.110.0040.00416.75
8.0.100.0040.00416.79
8.0.90.0000.00716.70
8.0.80.0070.01016.72
8.0.70.0070.00016.66
8.0.60.0070.00016.89
8.0.50.0040.00416.88
8.0.30.0150.00517.12
8.0.20.0100.00817.40
8.0.10.0000.00716.83
8.0.00.0100.01016.78
7.4.330.0030.00314.71
7.4.320.0080.00016.59
7.4.300.0000.00616.61
7.4.290.0070.00016.65
7.4.280.0070.00016.57
7.4.270.0000.00716.59
7.4.260.0000.00513.32
7.4.250.0050.00316.62
7.4.240.0030.00316.64
7.4.230.0000.00716.50
7.4.220.0120.00916.46
7.4.210.0100.00516.56
7.4.200.0050.00316.40
7.4.190.0030.00316.42
7.4.160.0150.00616.37
7.4.150.0090.01117.40
7.4.140.0060.01117.86
7.4.130.0080.01016.60
7.4.120.0080.01116.53
7.4.110.0160.00316.46
7.4.100.0110.01116.32
7.4.90.0090.00916.55
7.4.80.0140.00319.37
7.4.70.0120.00616.47
7.4.60.0080.00816.50
7.4.50.0030.00516.33
7.4.40.0040.00722.27
7.4.30.0060.01216.39
7.4.00.0110.00715.06
7.3.330.0030.00313.19
7.3.320.0030.00313.24
7.3.310.0030.00316.27
7.3.300.0040.00416.17
7.3.290.0090.01016.25
7.3.280.0050.01216.26
7.3.270.0100.00717.40
7.3.260.0090.01018.24
7.3.250.0280.02216.37
7.3.240.0080.00816.46
7.3.230.0140.00316.39
7.3.210.0060.01016.21
7.3.200.0070.01019.39
7.3.190.0120.00916.36
7.3.180.0060.00916.05
7.3.170.0090.00616.34
7.3.160.0100.00616.32
7.3.120.0100.00614.57
7.3.110.0070.00714.60
7.3.100.0060.01214.73
7.3.90.0070.00714.82
7.3.80.0090.00314.50
7.3.70.0100.00714.50
7.3.60.0030.01314.41
7.3.50.0070.01014.56
7.3.40.0120.00314.83
7.3.30.0090.00614.73
7.3.20.0070.01016.59
7.3.10.0050.01216.57
7.3.00.0060.00616.61
7.2.330.0090.00916.32
7.2.320.0130.01016.34
7.2.310.0140.00616.80
7.2.300.0060.01316.37
7.2.290.0130.00316.34
7.2.240.0040.01115.04
7.2.230.0040.01115.29
7.2.220.0090.00615.07
7.2.210.0090.00615.06
7.2.200.0030.01015.01
7.2.190.0090.00614.70
7.2.180.0100.00614.95
7.2.170.0070.01014.78
7.2.160.0090.00615.18
7.2.150.0030.01416.82
7.2.140.0090.00616.80
7.2.130.0060.00916.92
7.2.120.0090.00616.84
7.2.110.0080.00416.89
7.2.100.0000.01716.82
7.2.90.0070.01116.93
7.2.80.0070.01016.79
7.2.70.0070.01116.77
7.2.60.0100.00716.99
7.2.50.0070.01116.55
7.2.40.0110.00716.80
7.2.30.0040.01216.65
7.2.20.0030.00716.76
7.2.10.0100.00316.29
7.2.00.0020.01017.98
7.1.330.0060.00915.76
7.1.320.0070.00715.76
7.1.310.0000.01615.52
7.1.300.0060.00615.56
7.1.290.0030.00915.83
7.1.280.0090.00315.63
7.1.270.0070.00715.64
7.1.260.0060.00815.69
7.1.250.0100.00315.49
7.1.100.0050.00517.66
7.1.70.0030.00716.98
7.1.60.0160.00719.40
7.1.50.0260.01616.53
7.1.00.0000.06722.36
7.0.200.0080.00416.68
7.0.140.0030.07322.08
7.0.60.0100.03319.78
7.0.50.0030.04317.84
7.0.40.0030.07320.14
7.0.30.0400.07020.21
7.0.20.0200.04720.23
7.0.10.0070.04320.08
7.0.00.0070.09020.09
5.6.280.0030.07321.10
5.6.210.0200.06320.68
5.6.200.0070.04018.23
5.6.190.0130.07320.50
5.6.180.0400.07320.39
5.6.170.0270.06720.47
5.6.160.0030.04320.43
5.6.150.0070.08318.23
5.6.140.0170.03718.18
5.6.130.0170.07718.23
5.6.120.0100.05321.15
5.6.110.0030.08720.89
5.6.100.0130.08320.98
5.6.90.0030.06321.13
5.6.80.0230.06020.41
5.5.350.0300.07720.44
5.5.340.0000.04717.98
5.5.330.0030.05320.31
5.5.320.0230.05020.51
5.5.310.0300.07320.34
5.5.300.0100.04018.08
5.5.290.0030.05317.95
5.5.280.0230.07320.99
5.5.270.0030.06020.73
5.5.260.0100.06020.80
5.5.250.0070.04020.66
5.5.240.0070.07320.16
5.4.450.0200.04019.46
5.4.440.0030.05019.16
5.4.430.0170.04719.30
5.4.420.0300.03719.45
5.4.410.0130.03319.36
5.4.400.0170.03719.06
5.4.390.0300.03718.84
5.4.380.0270.07319.08
5.4.370.0170.04319.15
5.4.360.0200.04318.84
5.4.350.0200.07319.20
5.4.340.0270.06019.15
5.4.320.0130.04018.95
5.4.310.0230.05719.16
5.4.300.0170.05018.97
5.4.290.0330.06719.09
5.4.280.0170.04318.86
5.4.270.0270.03319.31
5.4.260.0230.04019.07
5.4.250.0030.04718.83
5.4.240.0100.04719.22
5.4.230.0100.07319.06
5.4.220.0100.04018.87
5.4.210.0030.03719.13
5.4.200.0830.03319.13
5.4.190.1470.03718.86
5.4.180.1630.04019.20
5.4.170.1530.05019.05
5.4.160.1700.03718.95
5.4.150.1900.04019.14
5.4.140.1830.04316.51
5.4.130.1870.03716.54
5.4.120.1770.04316.34
5.4.110.1830.04316.63
5.4.100.1830.03716.52
5.4.90.1630.03316.24
5.4.80.1700.03016.49
5.4.70.1870.03016.60
5.4.60.1670.02716.49
5.4.50.1770.05016.32
5.4.40.1470.03716.23
5.4.30.1470.04316.43
5.4.20.0170.04716.25
5.4.10.0070.04016.32
5.4.00.0030.03715.95
5.3.290.0900.04314.79
5.3.280.1500.04314.57
5.3.270.1530.04014.52
5.3.260.1530.03714.50
5.3.250.1370.03014.68
5.3.240.1730.05314.83
5.3.230.1570.03314.59
5.3.220.1870.04314.71
5.3.210.1530.04014.48
5.3.200.1730.03714.48
5.3.190.1830.04014.57
5.3.180.1700.04014.64
5.3.170.1630.03314.50
5.3.160.1600.03014.65
5.3.150.1530.03714.54
5.3.140.1830.04014.47
5.3.130.1400.04314.55
5.3.120.1630.03714.78
5.3.110.1800.04714.55
5.3.100.1500.04314.04
5.3.90.1830.04313.96
5.3.80.2000.02714.13
5.3.70.1570.03314.10
5.3.60.1700.04014.06
5.3.50.1930.04314.03
5.3.40.1630.04313.88
5.3.30.1770.04313.93
5.3.20.1630.02313.77
5.3.10.1730.04713.64
5.3.00.1730.03013.73
5.2.170.1400.03011.13
5.2.160.1300.03011.08
5.2.150.1500.03011.38
5.2.140.1470.04011.30
5.2.130.1530.03311.04
5.2.120.1500.03711.09
5.2.110.1470.03011.20
5.2.100.1300.03011.06
5.2.90.1500.03011.19
5.2.80.1270.03011.02
5.2.70.1300.02711.18
5.2.60.1470.03711.18
5.2.50.1130.02710.93
5.2.40.0000.03010.91
5.2.30.0070.05311.05
5.2.20.0000.05710.93
5.2.10.0100.03010.79
5.2.00.0000.03310.67
5.1.60.1030.02710.16
5.1.50.0930.0309.93
5.1.40.1030.03010.07
5.1.30.1070.03010.49
5.1.20.1030.02710.27
5.1.10.1000.02010.13
5.1.00.1100.02310.13
5.0.50.0500.0208.48
5.0.40.0530.0208.47
5.0.30.0530.0308.16
5.0.20.0670.0308.27
5.0.10.0500.0238.11
5.0.00.0600.0338.06
4.4.90.0600.0177.44
4.4.80.0600.0137.44
4.4.70.0670.0277.44
4.4.60.0530.0207.44
4.4.50.0570.0137.44
4.4.40.0470.0307.44
4.4.30.0570.0207.44
4.4.20.0630.0237.44
4.4.10.0500.0177.44
4.4.00.0600.0307.44
4.3.110.0730.0207.44
4.3.100.0400.0207.44
4.3.90.0670.0277.44
4.3.80.0530.0237.44
4.3.70.0600.0177.44
4.3.60.0330.0207.44
4.3.50.0570.0107.44
4.3.40.0600.0277.44
4.3.30.0300.0177.44
4.3.20.0230.0177.44
4.3.10.0230.0177.44
4.3.00.0300.0137.44

preferences:
45.89 ms | 401 KiB | 5 Q