3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP // If you are using Zend Framework's autoloader // this example will crash with no errors on // the class_exists() call. interface MyInterface { public function refreshData(); } abstract class MyAbstract implements MyInterface { // THIS IS THE ERROR... // the function should be 'public' abstract protected function refreshData(); } class MyClass extends MyAbstract { public function refreshData() { print "am in refreshData"; } } //-------------------------------------------- if (class_exists('MyClass',true)) { $mine = new MyClass(); $mine->refreshData(); }

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.0070.00716.75
8.3.50.0110.00921.98
8.3.40.0110.00418.52
8.3.30.0070.00718.91
8.3.20.0040.00420.29
8.3.10.0040.00423.53
8.3.00.0040.00420.95
8.2.180.0110.00718.41
8.2.170.0070.00722.96
8.2.160.0110.00420.38
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00022.12
8.2.110.0030.00622.17
8.2.100.0040.00817.91
8.2.90.0000.00719.05
8.2.80.0060.00317.97
8.2.70.0030.00617.34
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0000.00819.84
8.2.30.0030.00618.19
8.2.20.0050.00317.71
8.2.10.0040.00418.06
8.2.00.0070.00017.50
8.1.280.0090.00625.92
8.1.270.0080.00022.27
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00823.87
8.1.230.0090.00319.09
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0040.00417.25
8.1.180.0030.00518.10
8.1.170.0090.00018.59
8.1.160.0040.00422.00
8.1.150.0040.00418.48
8.1.140.0040.00417.26
8.1.130.0030.00317.76
8.1.120.0000.00717.44
8.1.110.0000.00817.27
8.1.100.0040.00417.33
8.1.90.0070.00017.35
8.1.80.0040.00417.42
8.1.70.0040.00417.32
8.1.60.0000.00817.59
8.1.50.0000.00817.44
8.1.40.0040.00417.48
8.1.30.0030.00517.57
8.1.20.0000.00817.60
8.1.10.0000.00717.41
8.1.00.0000.00817.21
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0070.00018.39
8.0.270.0030.00316.81
8.0.260.0000.00617.20
8.0.250.0070.00017.00
8.0.240.0040.00416.86
8.0.230.0080.00016.98
8.0.220.0050.00216.86
8.0.210.0030.00316.93
8.0.200.0030.00316.96
8.0.190.0040.00416.95
8.0.180.0070.00016.84
8.0.170.0000.00716.89
8.0.160.0040.00417.00
8.0.150.0030.00416.82
8.0.140.0030.00316.82
8.0.130.0000.00613.25
8.0.120.0050.00316.84
8.0.110.0000.00716.73
8.0.100.0040.00416.95
8.0.90.0070.00016.70
8.0.80.0000.01916.96
8.0.70.0000.00716.82
8.0.60.0070.00016.96
8.0.50.0050.00216.74
8.0.30.0130.00617.01
8.0.20.0120.01017.40
8.0.10.0040.00416.82
8.0.00.0160.00516.67
7.4.330.0030.00315.00
7.4.320.0030.00316.61
7.4.300.0040.00416.34
7.4.290.0030.00316.47
7.4.280.0040.00416.44
7.4.270.0040.00416.55
7.4.260.0000.00716.43
7.4.250.0040.00416.33
7.4.240.0020.00516.46
7.4.230.0030.00416.54
7.4.220.0000.01816.47
7.4.210.0060.00716.46
7.4.200.0000.00816.61
7.4.190.0030.00316.65
7.4.160.0130.00316.34
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0090.00916.46
7.4.120.0130.00516.41
7.4.110.0060.01216.32
7.4.100.0190.00316.54
7.4.90.0110.01016.56
7.4.80.0110.00719.39
7.4.70.0060.01516.68
7.4.60.0100.01016.48
7.4.50.0000.00816.49
7.4.40.0140.00416.36
7.4.30.0070.01016.35
7.4.00.0060.00314.79
7.3.330.0000.00513.21
7.3.320.0000.00513.05
7.3.310.0040.00416.16
7.3.300.0000.00616.10
7.3.290.0030.01116.29
7.3.280.0080.01016.24
7.3.270.0150.00617.40
7.3.260.0110.00616.34
7.3.250.0090.01216.48
7.3.240.0100.00616.23
7.3.230.0090.01116.39
7.3.210.0100.00616.46
7.3.200.0090.01019.39
7.3.190.0130.00316.23
7.3.180.0070.01016.28
7.3.170.0140.00716.41
7.3.160.0160.00316.43
7.3.120.0130.00314.71
7.2.330.0130.01016.38
7.2.320.0070.01016.38
7.2.310.0130.01016.30
7.2.300.0070.01016.51
7.2.290.0080.00816.60
7.2.60.0110.01116.66
7.2.00.0040.00819.38
7.1.200.0040.01115.75
7.1.100.0000.01018.04
7.1.70.0000.01217.00
7.1.60.0070.01719.46
7.1.50.0110.01816.51
7.1.00.0030.07722.29
7.0.200.0040.00416.68
7.0.140.0030.07322.06
7.0.60.0070.08319.93
7.0.50.0130.05317.85
7.0.40.0130.07720.04
7.0.30.0330.07720.16
7.0.20.0300.04020.08
7.0.10.0100.07320.19
7.0.00.0130.08020.15
5.6.280.0070.07021.12
5.6.210.0170.07020.75
5.6.200.0100.08318.25
5.6.190.0030.06320.47
5.6.180.0300.04320.41
5.6.170.0300.07020.62
5.6.160.0070.07720.54
5.6.150.0100.07718.23
5.6.140.0070.03718.18
5.6.130.0070.04718.25
5.6.120.0030.04021.02
5.6.110.0030.04320.98
5.6.100.0030.07720.96
5.6.90.0030.04021.00
5.6.80.0070.04720.41
5.5.350.3970.03720.35
5.5.340.0070.03717.96
5.5.330.0000.05020.23
5.5.320.0170.04320.24
5.5.310.0230.05320.30
5.5.300.0130.07318.03
5.5.290.0000.05717.98
5.5.280.0130.05020.85
5.5.270.0130.04020.95
5.5.260.0100.08020.84
5.5.250.0100.07720.58
5.5.240.0100.07020.19
5.4.450.2370.04319.46
5.4.440.2170.03719.20
5.4.430.2330.04319.47
5.4.420.2630.04019.41
5.4.410.2270.04719.04
5.4.400.2400.04019.23
5.4.390.2270.03319.09
5.4.380.2130.03718.84
5.4.370.2370.04719.25
5.4.360.2470.04019.00
5.4.350.2400.03319.24
5.4.340.2570.03719.25
5.4.320.2600.03719.21
5.4.310.2530.04019.09
5.4.300.2400.04019.06
5.4.290.2070.04718.98
5.4.280.2200.04318.98
5.4.270.2830.04718.99
5.4.260.2270.04319.18
5.4.250.2270.04019.19
5.4.240.2430.04019.08
5.4.230.2200.04018.87
5.4.220.2100.03719.13
5.4.210.2270.03318.83
5.4.200.2200.03719.23
5.4.190.2170.04019.12
5.4.180.2200.03719.21
5.4.170.0570.05319.03
5.4.160.0030.04719.07
5.4.150.0030.04319.20
5.4.140.0070.03316.38
5.4.130.2200.03716.54
5.4.120.2200.03716.38
5.4.110.2330.02716.30
5.4.100.2300.03316.61
5.4.90.2230.03316.41
5.4.80.2070.03316.56
5.4.70.2230.03716.48
5.4.60.2030.03716.54
5.4.50.2030.04716.42
5.4.40.0000.04316.43
5.4.30.0100.05716.16
5.4.20.0670.04016.55
5.4.10.1530.02716.53
5.4.00.1700.03316.10
5.3.290.1930.04014.64
5.3.280.1900.03714.67
5.3.270.1970.03314.58
5.3.260.1870.04014.59
5.3.250.2070.04014.69
5.3.240.1600.04014.52
5.3.230.0470.03714.65
5.3.220.0270.07314.58
5.3.210.0230.04714.63
5.3.200.0230.06014.65
5.3.190.0270.06014.49
5.3.180.0270.05014.58
5.3.170.0230.03014.71
5.3.160.0230.03314.58
5.3.150.0200.04014.57
5.3.140.0230.06714.67
5.3.130.0270.04014.52
5.3.120.0270.06314.67
5.3.110.0300.06714.56
5.3.100.0200.07314.19
5.3.90.0330.05714.05
5.3.80.0300.06714.14
5.3.70.0200.04713.95
5.3.60.0270.07314.06
5.3.50.0330.06013.87
5.3.40.0270.05714.10
5.3.30.0270.06313.84
5.3.20.0300.06013.70
5.3.10.0270.05713.56
5.3.00.0270.06713.55
5.2.170.0200.04011.38
5.2.160.0200.05011.13
5.2.150.0230.05311.27
5.2.140.0170.03711.28
5.2.130.0200.04711.04
5.2.120.0170.04311.23
5.2.110.0200.05711.17
5.2.100.0200.04311.19
5.2.90.0200.04311.25
5.2.80.0170.04711.02
5.2.70.0270.05011.00
5.2.60.0170.05311.21
5.2.50.0170.06011.11
5.2.40.0170.04311.12
5.2.30.0200.06010.98
5.2.20.0170.05011.19
5.2.10.0130.06010.91
5.2.00.0130.06310.79
5.1.60.0130.0309.89
5.1.50.0200.0479.98
5.1.40.0100.0309.89
5.1.30.0200.05710.39
5.1.20.0230.04710.32
5.1.10.0230.02310.00
5.1.00.0200.05310.16
5.0.50.0130.0208.57
5.0.40.0130.0438.40
5.0.30.0130.0708.21
5.0.20.0130.0438.29
5.0.10.0130.0478.19
5.0.00.0170.0308.30
4.4.90.0070.0278.11
4.4.80.0100.0208.11
4.4.70.0100.0278.11
4.4.60.0100.0238.11
4.4.50.0100.0138.11
4.4.40.0070.0438.11
4.4.30.0100.0238.11
4.4.20.0130.0138.11
4.4.10.0130.0138.11
4.4.00.0100.0278.11
4.3.110.0130.0338.11
4.3.100.0100.0178.11
4.3.90.0100.0178.11
4.3.80.0170.0308.11
4.3.70.0100.0278.11
4.3.60.0100.0208.11
4.3.50.0100.0338.11
4.3.40.0130.0238.11
4.3.30.0070.0178.11
4.3.20.0030.0208.11
4.3.10.0070.0378.11
4.3.00.0030.0278.11

preferences:
48.34 ms | 401 KiB | 5 Q