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.0160.00618.55
8.3.50.0080.01221.96
8.3.40.0110.01118.84
8.3.30.0070.01019.09
8.3.20.0100.00320.34
8.3.10.0060.00321.95
8.3.00.0130.00322.51
8.2.180.0120.00916.75
8.2.170.0100.00722.96
8.2.160.0100.01020.98
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0030.01019.36
8.2.110.0030.00622.29
8.2.100.0060.00619.76
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0040.00417.78
8.2.50.0040.00418.07
8.2.40.0080.00018.28
8.2.30.0040.00418.01
8.2.20.0000.00717.64
8.2.10.0050.00317.73
8.2.00.0000.00817.69
8.1.280.0130.00725.92
8.1.270.0080.00022.25
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0060.00619.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0050.00317.41
8.1.180.0050.00318.10
8.1.170.0040.00718.57
8.1.160.0060.00321.98
8.1.150.0000.00718.49
8.1.140.0070.00017.50
8.1.130.0030.00317.83
8.1.120.0000.00717.47
8.1.110.0000.00817.43
8.1.100.0000.00817.29
8.1.90.0030.00317.46
8.1.80.0070.00017.31
8.1.70.0000.00717.41
8.1.60.0030.00517.45
8.1.50.0030.00517.42
8.1.40.0000.00717.49
8.1.30.0050.00317.66
8.1.20.0030.00617.70
8.1.10.0040.00417.45
8.1.00.0020.00517.45
8.0.300.0070.00018.77
8.0.290.0040.00417.18
8.0.280.0000.00718.47
8.0.270.0030.00317.17
8.0.260.0030.00516.90
8.0.250.0040.00416.94
8.0.240.0030.00516.99
8.0.230.0030.00516.97
8.0.220.0070.00016.97
8.0.210.0030.00516.85
8.0.200.0030.00316.92
8.0.190.0030.00316.85
8.0.180.0040.00416.82
8.0.170.0040.00416.95
8.0.160.0050.00316.78
8.0.150.0060.00316.84
8.0.140.0020.00516.75
8.0.130.0030.00313.31
8.0.120.0000.00716.75
8.0.110.0040.00416.79
8.0.100.0070.00016.77
8.0.90.0070.00016.92
8.0.80.0090.00916.91
8.0.70.0040.00416.97
8.0.60.0040.00416.97
8.0.50.0000.00716.96
8.0.30.0100.00916.92
8.0.20.0070.01317.40
8.0.10.0040.00416.97
8.0.00.0060.01116.83
7.4.330.0000.00515.02
7.4.320.0030.00316.44
7.4.300.0000.00816.61
7.4.290.0030.00316.40
7.4.280.0000.00716.59
7.4.270.0030.00316.39
7.4.260.0030.00316.41
7.4.250.0000.00716.55
7.4.240.0000.00716.55
7.4.230.0070.00016.42
7.4.220.0030.01516.55
7.4.210.0030.01116.61
7.4.200.0080.00016.35
7.4.190.0000.00716.61
7.4.160.0130.00616.46
7.4.150.0140.00317.40
7.4.140.0100.00817.86
7.4.130.0090.00916.50
7.4.120.0060.01116.53
7.4.110.0120.00716.56
7.4.100.0130.00716.46
7.4.90.0060.01816.51
7.4.80.0120.00616.46
7.4.70.0030.01316.52
7.4.60.0040.01216.49
7.4.50.0040.00416.34
7.4.40.0130.00022.77
7.4.30.0100.01116.53
7.4.10.0030.01515.21
7.4.00.0080.01015.03
7.3.330.0050.00013.32
7.3.320.0020.00213.37
7.3.310.0020.00516.22
7.3.300.0030.00316.46
7.3.290.0040.01116.33
7.3.280.0080.00916.35
7.3.270.0100.00717.40
7.3.260.0110.01416.47
7.3.250.0060.01216.42
7.3.240.0100.00716.39
7.3.230.0140.00716.64
7.3.210.0130.00316.57
7.3.200.0100.01019.39
7.3.190.0030.01916.44
7.3.180.0130.00716.39
7.3.170.0090.00616.59
7.3.160.0120.00416.31
7.3.130.0100.00714.82
7.3.120.0060.01314.88
7.3.110.0080.00814.92
7.3.100.0080.00514.79
7.3.90.0040.00914.83
7.3.80.0050.00814.84
7.3.70.0030.00814.87
7.3.60.0060.00714.66
7.3.50.0030.01114.88
7.3.40.0050.00814.83
7.3.30.0010.01214.78
7.3.20.0030.01016.60
7.3.10.0060.00916.52
7.3.00.0080.00616.56
7.2.330.0060.01116.61
7.2.320.0070.01416.70
7.2.310.0110.01116.61
7.2.300.0080.00816.66
7.2.290.0070.01416.48
7.2.260.0110.00714.85
7.2.250.0040.01315.03
7.2.240.0070.01114.93
7.2.230.0060.01015.02
7.2.220.0050.00614.89
7.2.210.0050.01014.85
7.2.200.0060.00514.92
7.2.190.0060.00915.02
7.2.180.0070.00714.98
7.2.170.0060.00515.01
7.2.160.0090.00015.18
7.2.150.0090.00317.02
7.2.140.0040.00816.91
7.2.130.0060.00616.75
7.2.120.0050.00716.82
7.2.110.0020.01216.85
7.2.100.0020.00716.80
7.2.90.0100.00616.96
7.2.80.0060.00616.69
7.2.70.0040.01116.92
7.2.60.0070.00616.81
7.2.50.0020.00716.70
7.2.40.0070.00916.80
7.2.30.0060.00816.85
7.2.20.0090.00416.88
7.2.10.0080.00516.75
7.2.00.0070.00717.81
7.1.330.0060.00915.75
7.1.320.0020.01115.50
7.1.310.0030.01215.89
7.1.300.0070.00315.66
7.1.290.0000.01415.42
7.1.280.0040.00615.64
7.1.270.0070.00715.59
7.1.260.0090.00615.70
7.1.250.0050.00815.45
7.1.240.0130.00315.46
7.1.230.0000.01215.62
7.1.220.0060.01015.72
7.1.210.0060.00615.46
7.1.200.0060.00815.62
7.1.190.0030.01015.69
7.1.180.0130.00315.62
7.1.170.0000.01415.43
7.1.160.0120.00615.57
7.1.150.0030.01015.56
7.1.140.0070.00715.77
7.1.130.0040.01215.57
7.1.120.0030.01415.69
7.1.110.0070.00315.56
7.1.100.0020.01216.81
7.1.90.0130.00315.63
7.1.80.0100.00715.73
7.1.70.0060.00616.23
7.1.60.0080.01017.68
7.1.50.0070.01024.82
7.1.40.0030.01215.52
7.1.30.0000.01315.52
7.1.20.0030.01115.35
7.1.10.0000.01115.77
7.1.00.0050.03919.00
7.0.330.0060.00615.41
7.0.320.0070.00715.09
7.0.310.0060.01115.14
7.0.300.0100.00015.13
7.0.290.0120.00615.20
7.0.280.0060.00615.32
7.0.270.0030.01315.28
7.0.260.0030.00615.15
7.0.250.0100.00315.29
7.0.240.0000.00915.58
7.0.230.0030.01015.18
7.0.220.0110.00315.39
7.0.210.0080.00615.42
7.0.200.0060.00615.88
7.0.190.0030.01315.39
7.0.180.0060.00915.49
7.0.170.0040.00815.53
7.0.160.0030.01015.20
7.0.150.0070.00315.33
7.0.140.0070.03818.76
7.0.130.0000.01315.01
7.0.120.0030.00615.18
7.0.110.0070.00715.41
7.0.100.0000.01415.33
7.0.90.0000.00915.25
7.0.80.0000.01115.20
7.0.70.0070.02718.57
7.0.60.0050.04518.53
7.0.50.0070.04018.82
7.0.40.0040.03616.87
7.0.30.0060.03116.74
7.0.20.0040.04716.58
7.0.10.0020.04716.81
7.0.00.0030.04616.60
5.6.400.0100.00014.56
5.6.390.0060.00914.45
5.6.380.0000.01314.38
5.6.370.0090.00914.52
5.6.360.0040.01514.14
5.6.350.0120.00614.09
5.6.340.0030.00914.19
5.6.330.0070.00414.31
5.6.320.0070.00714.13
5.6.310.0030.01314.39
5.6.300.0110.00314.36
5.6.290.0000.00813.89
5.6.280.0040.04017.64
5.6.270.0030.00714.32
5.6.260.0030.00714.62
5.6.250.0070.00714.34
5.6.240.0030.01014.35
5.6.230.0060.00914.44
5.6.220.0050.03317.45
5.6.210.0030.04317.53
5.6.200.0030.04817.80
5.6.190.0030.03917.75
5.6.180.0030.04617.69
5.6.170.0070.03617.52
5.6.160.0000.04717.58
5.6.150.0100.04217.86
5.6.140.0100.04217.74
5.6.130.0070.04517.78
5.6.120.0020.05017.71
5.6.110.0070.03717.61
5.6.100.0070.04517.59
5.6.90.0030.03917.52
5.6.80.0070.03917.23
5.6.70.0020.03517.21
5.6.60.0070.03217.39
5.6.50.0050.04217.27
5.6.40.0050.02517.23
5.6.30.0100.04217.39
5.6.20.0100.02817.22
5.6.10.0030.03717.36
5.6.00.0020.03417.27
5.5.380.0040.00714.13
5.5.370.0040.00414.28
5.5.360.0080.04317.51
5.5.350.0070.03817.31
5.5.340.0040.03617.35
5.5.330.0050.04517.55
5.5.320.0080.03117.58
5.5.310.0080.03217.36
5.5.300.0070.03717.59
5.5.290.0030.04817.50
5.5.280.0030.04417.57
5.5.270.0050.04217.65
5.5.260.0050.04217.61
5.5.250.0060.04417.42
5.5.240.0070.02717.23
5.5.230.0060.03317.28
5.5.220.0020.03417.32
5.5.210.0080.02617.09
5.5.200.0050.04317.08
5.5.190.0030.04317.18
5.5.180.0030.04417.26
5.5.170.0070.00714.34
5.5.160.0050.02517.20
5.5.150.0060.04317.14
5.5.140.0040.04117.04
5.5.130.0050.04117.26
5.5.120.0030.04417.27
5.5.110.0050.02317.22
5.5.100.0090.03817.25
5.5.90.0080.03217.13
5.5.80.0030.03617.10
5.5.70.0050.03817.13
5.5.60.0060.04317.21
5.5.50.0050.03817.17
5.5.40.0030.04117.18
5.5.30.0030.03917.17
5.5.20.0080.02817.29
5.5.10.0070.03717.05
5.5.00.0030.04216.96
5.4.450.0060.04315.34
5.4.440.0060.04015.25
5.4.430.0020.04715.34
5.4.420.0030.03915.03
5.4.410.0090.02315.10
5.4.400.0020.04215.09
5.4.390.0070.03815.02
5.4.380.0050.03515.11
5.4.370.0050.03314.89
5.4.360.0030.02015.08
5.4.350.0060.03714.96
5.4.340.0030.03815.07
5.4.330.0000.01011.18
5.4.320.0090.03614.86
5.4.310.0070.03815.06
5.4.300.0030.04214.89
5.4.290.0030.04115.04
5.4.280.0070.03815.06
5.4.270.0050.02214.89
5.4.260.0030.02715.09
5.4.250.0030.02314.96
5.4.240.0030.03414.81
5.4.230.0030.03714.95
5.4.220.0030.04114.82
5.4.210.0030.03615.00
5.4.200.0000.03614.99
5.4.190.0090.03714.79
5.4.180.0050.03015.10
5.4.170.0040.03815.13
5.4.160.0050.03915.01
5.4.150.0060.03615.13
5.4.140.0020.03513.73
5.4.130.0030.03213.68
5.4.120.0020.03613.73
5.4.110.0050.03613.83
5.4.100.0030.03713.71
5.4.90.0040.03113.71
5.4.80.0070.03413.84
5.4.70.0040.02313.79
5.4.60.0050.02313.64
5.4.50.0050.03413.55
5.4.40.0010.03513.74
5.4.30.0030.03613.63
5.4.20.0030.02213.64
5.4.10.0030.01813.70
5.4.00.0050.02213.39
5.3.290.0100.07014.59
5.3.280.0030.05714.52
5.3.270.0070.07314.74
5.3.260.0000.08714.63
5.3.250.0070.06714.61
5.3.240.0070.07014.66
5.3.230.0030.07714.55
5.3.220.0030.06714.62
5.3.210.0070.08014.50
5.3.200.0030.07314.72
5.3.190.0000.07014.62
5.3.180.0000.08014.68
5.3.170.0030.06714.56
5.3.160.0100.07314.54
5.3.150.0030.06714.57
5.3.140.0030.07314.51
5.3.130.0030.08714.65
5.3.120.0100.04014.64
5.3.110.0070.03314.64
5.3.100.0000.04714.13
5.3.90.0030.03714.05
5.3.80.0070.03014.14
5.3.70.0030.03713.93
5.3.60.0100.02714.06
5.3.50.0000.03713.97
5.3.40.0030.03313.93
5.3.30.0000.03713.96
5.3.20.0000.03313.58
5.3.10.0000.03313.75
5.3.00.0000.03313.75
5.2.170.0030.02712.32
5.2.160.0030.02712.32
5.2.150.0000.03012.32
5.2.140.0000.03012.32
5.2.130.0000.03012.32
5.2.120.0000.02312.32
5.2.110.0000.03012.32
5.2.100.0030.02712.32
5.2.90.0000.02312.32
5.2.80.0030.02312.32
5.2.70.0000.02312.32
5.2.60.0000.03012.32
5.2.50.0000.03012.32
5.2.40.0000.03012.32
5.2.30.0000.02312.32
5.2.20.0070.02312.32
5.2.10.0000.02712.32
5.2.00.0030.02712.32
5.1.60.0030.01712.32
5.1.50.0000.02012.32
5.1.40.0030.02712.32
5.1.30.0000.02712.32
5.1.20.0000.03012.32
5.1.10.0030.02312.32
5.1.00.0000.03712.32
5.0.50.0000.02012.32
5.0.40.0000.02312.32
5.0.30.0000.02312.32
5.0.20.0000.02012.32
5.0.10.0000.02312.32
5.0.00.0030.02712.32
4.4.90.0000.01312.32
4.4.80.0000.01312.32
4.4.70.0000.01312.32
4.4.60.0000.01312.32
4.4.50.0000.01312.32
4.4.40.0000.02012.32
4.4.30.0030.01012.32
4.4.20.0000.02012.32
4.4.10.0030.01312.32
4.4.00.0000.02012.32
4.3.110.0000.01312.32
4.3.100.0000.01312.32
4.3.90.0000.01312.32
4.3.80.0000.02312.32
4.3.70.0030.01012.32
4.3.60.0000.01312.32
4.3.50.0030.01012.32
4.3.40.0000.02012.32
4.3.30.0000.01312.32
4.3.20.0000.01312.32
4.3.10.0000.01312.32
4.3.00.0000.01312.32

preferences:
44.47 ms | 401 KiB | 5 Q