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 { public static function who() { echo __CLASS__; } public static function test() { static::who(); } } class B extends A { public static function who() { echo __CLASS__; } } B::test(); B::who();

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.40.0140.00018.71
8.3.30.0130.00318.54
8.3.20.0040.00418.68
8.3.10.0040.00420.41
8.3.00.0000.00819.25
8.2.170.0080.00822.96
8.2.160.0110.00421.90
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.64
8.2.110.0100.00020.83
8.2.100.0080.00417.77
8.2.90.0050.00319.09
8.2.80.0040.00417.93
8.2.70.0040.00417.63
8.2.60.0050.00517.80
8.2.50.0040.00418.07
8.2.40.0060.00317.95
8.2.30.0000.00717.81
8.2.20.0040.00417.45
8.2.10.0000.00717.57
8.2.00.0040.00417.41
8.1.270.0000.00724.66
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00422.54
8.1.230.0050.00521.02
8.1.220.0000.00817.74
8.1.210.0040.00418.85
8.1.200.0090.00017.10
8.1.190.0000.00717.41
8.1.180.0030.00518.10
8.1.170.0040.00418.84
8.1.160.0040.00418.76
8.1.150.0080.00018.50
8.1.140.0060.00317.32
8.1.130.0000.00717.70
8.1.120.0070.00017.30
8.1.110.0050.00217.20
8.1.100.0030.00417.39
8.1.90.0000.00717.33
8.1.80.0040.00417.36
8.1.70.0000.00717.31
8.1.60.0070.00017.35
8.1.50.0040.00417.38
8.1.40.0080.00017.42
8.1.30.0000.00817.63
8.1.20.0030.00617.60
8.1.10.0040.00417.39
8.1.00.0070.00017.47
8.0.300.0000.00719.98
8.0.290.0070.00016.63
8.0.280.0070.00018.48
8.0.270.0040.00417.19
8.0.260.0030.00316.75
8.0.250.0070.00016.90
8.0.240.0040.00416.88
8.0.230.0000.00816.93
8.0.220.0000.00716.82
8.0.210.0000.00716.84
8.0.200.0030.00316.81
8.0.190.0090.00016.94
8.0.180.0040.00416.78
8.0.170.0030.00516.66
8.0.160.0070.00016.84
8.0.150.0000.00816.70
8.0.140.0030.00716.77
8.0.130.0030.00313.30
8.0.120.0000.00716.78
8.0.110.0000.00816.71
8.0.100.0030.00316.86
8.0.90.0000.00716.75
8.0.80.0160.00016.80
8.0.70.0000.00716.79
8.0.60.0000.00816.78
8.0.50.0030.00516.72
8.0.30.0130.00617.03
8.0.20.0100.00817.18
8.0.10.0000.00716.88
8.0.00.0070.01216.69
7.4.330.0020.00212.91
7.4.320.0050.00216.54
7.4.300.0060.00016.63
7.4.290.0000.00616.50
7.4.280.0070.00016.50
7.4.270.0070.00016.60
7.4.260.0030.00313.20
7.4.250.0060.00316.62
7.4.240.0040.00416.49
7.4.230.0040.00416.59
7.4.220.0110.00716.46
7.4.210.0080.00616.49
7.4.200.0040.00416.55
7.4.190.0030.00316.66
7.4.160.0070.01016.53
7.4.150.0080.00916.34
7.4.140.0100.01316.35
7.4.130.0070.01116.50
7.4.120.0120.00616.49
7.4.110.0030.01316.34
7.4.100.0130.00316.52
7.4.90.0160.00016.54
7.4.80.0120.00816.44
7.4.70.0110.00816.36
7.4.60.0120.00616.48
7.4.50.0040.00416.37
7.4.40.0060.00816.15
7.4.30.0170.00016.40
7.4.00.0040.01414.84
7.3.330.0000.00613.01
7.3.320.0030.00313.26
7.3.310.0030.00316.24
7.3.300.0030.00316.25
7.3.290.0030.01116.30
7.3.280.0080.00716.28
7.3.270.0140.00916.45
7.3.260.0100.00716.26
7.3.250.0130.00516.28
7.3.240.0080.00816.28
7.3.230.0100.00716.43
7.3.210.0060.01416.39
7.3.200.0060.01219.39
7.3.190.0110.00716.63
7.3.180.0100.00616.34
7.3.170.0080.00816.30
7.3.160.0070.01316.18
7.3.120.0000.01614.73
7.2.330.0000.01716.67
7.2.320.0040.01316.38
7.2.310.0110.00616.66
7.2.300.0100.00616.66
7.2.290.0110.00816.71
7.2.60.0070.00416.76
7.1.200.0060.00915.74
7.1.70.0000.01016.92
7.1.60.0140.00719.40
7.1.50.0070.01516.73
7.1.00.0000.06022.33
7.0.200.0470.00914.52
7.0.140.0070.07021.90
7.0.120.0070.06322.18
7.0.60.0130.04019.79
7.0.50.0130.07317.90
7.0.40.0000.04720.26
7.0.30.0230.03720.08
7.0.20.0200.07720.07
7.0.10.0100.08320.33
7.0.00.0070.07020.05
5.6.280.0070.07020.89
5.6.210.0000.08320.44
5.6.200.0100.07718.20
5.6.190.0030.08720.61
5.6.180.0300.06320.63
5.6.170.0230.04720.55
5.6.160.0030.04320.50
5.6.150.0000.04018.19
5.6.140.0030.04318.18
5.6.130.0100.07718.15
5.6.120.0100.07021.12
5.6.110.0100.04721.13
5.6.100.0100.08320.99
5.6.90.0170.06021.10
5.6.80.0100.06320.51
5.5.350.0300.07020.34
5.5.340.0100.08017.93
5.5.330.0030.04020.44
5.5.320.0200.04720.27
5.5.310.0300.04020.35
5.5.300.0130.07318.09
5.5.290.0000.04317.95
5.5.280.0170.07320.87
5.5.270.0100.08020.79
5.5.260.0130.06320.88
5.5.250.0100.05720.69
5.5.240.0100.06720.19
5.4.450.0100.05019.18
5.4.440.0030.08719.47
5.4.430.0000.08319.48
5.4.420.0070.06719.57
5.4.410.0070.07319.05
5.4.400.0100.06719.15
5.4.390.0070.06319.14
5.4.380.0070.07718.94
5.4.370.0130.06718.85
5.4.360.0070.03719.15
5.4.350.0170.06319.21
5.4.340.0070.07718.86
5.4.320.0030.05019.16
5.4.310.0100.03718.85
5.4.300.0100.07319.15
5.4.290.0100.05318.84
5.4.280.0070.07719.07
5.4.270.0000.08319.20
5.4.260.0170.03719.23
5.4.250.0030.04319.13
5.4.240.0170.06719.17
5.4.230.0130.07018.93
5.4.220.0070.05019.20
5.4.210.0000.07719.14
5.4.200.0170.05319.23
5.4.190.0030.04019.25
5.4.180.0000.04319.10
5.4.170.0100.05319.14
5.4.160.0070.04719.13
5.4.150.0070.04318.83
5.4.140.0100.05716.55
5.4.130.0000.08016.44
5.4.120.0000.04716.35
5.4.110.0000.07716.35
5.4.100.0030.08316.48
5.4.90.0170.05316.43
5.4.80.0100.06716.30
5.4.70.0030.07716.46
5.4.60.0000.07716.36
5.4.50.0070.04716.27
5.4.40.0030.07316.66
5.4.30.0030.07316.46
5.4.20.0030.05316.46
5.4.10.0070.04316.50
5.4.00.0070.07015.95
5.3.290.0030.05314.71
5.3.280.0100.07314.63
5.3.270.0030.04014.61
5.3.260.0100.07314.63
5.3.250.0070.03714.49
5.3.240.0030.04014.61
5.3.230.0070.04314.67
5.3.220.0130.07014.58
5.3.210.0130.07714.73
5.3.200.0070.05714.59
5.3.190.0070.07714.46
5.3.180.0070.07014.56
5.3.170.0030.04714.59
5.3.160.0030.08314.62
5.3.150.0070.07014.58
5.3.140.0070.05014.58
5.3.130.0070.07714.57
5.3.120.0070.06314.47
5.3.110.0100.06314.61
5.3.100.0030.08014.03
5.3.90.0000.05314.04
5.3.80.0070.03713.99
5.3.70.0030.05313.93
5.3.60.0030.04714.07
5.3.50.0100.05313.95
5.3.40.0030.07314.11
5.3.30.0030.04013.98
5.3.20.0070.03713.70
5.3.10.0030.03313.81
5.3.00.0030.07313.64
5.2.170.0070.06311.07
5.2.160.0000.05311.12
5.2.150.0030.03311.30
5.2.140.0030.06011.30
5.2.130.0030.02711.06
5.2.120.0000.05711.14
5.2.110.0070.05311.15
5.2.100.0000.04311.06
5.2.90.0030.06011.07
5.2.80.0030.06311.25
5.2.70.0070.06011.25
5.2.60.0100.04311.05
5.2.50.0070.03711.02
5.2.40.0000.03711.03
5.2.30.0030.05710.98
5.2.20.0030.06311.12
5.2.10.0130.01711.02
5.2.00.0000.06710.78
5.1.60.0030.0439.97
5.1.50.0030.05010.06
5.1.40.0100.0639.89
5.1.30.0070.04310.23
5.1.20.0070.05310.36
5.1.10.0130.03310.22
5.1.00.0070.03010.11
5.0.50.0000.0439.16
5.0.40.0000.0209.16
5.0.30.0030.0379.16
5.0.20.0030.0439.16
5.0.10.0030.0409.16
5.0.00.0030.0509.16
4.4.90.0030.0279.16
4.4.80.0000.0379.16
4.4.70.0000.0179.16
4.4.60.0030.0309.16
4.4.50.0000.0179.16
4.4.40.0000.0339.16
4.4.30.0030.0279.16
4.4.20.0030.0379.16
4.4.10.0000.0409.16
4.4.00.0000.0479.16
4.3.110.0070.0139.16
4.3.100.0000.0239.16
4.3.90.0000.0339.16
4.3.80.0000.0379.16
4.3.70.0000.0339.16
4.3.60.0000.0339.16
4.3.50.0000.0309.16
4.3.40.0030.0279.16
4.3.30.0000.0179.16
4.3.20.0030.0139.16
4.3.10.0030.0379.16
4.3.00.0000.0179.16

preferences:
43.9 ms | 400 KiB | 5 Q