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.0090.01318.18
8.3.50.0110.00521.92
8.3.40.0070.01018.59
8.3.30.0030.01018.94
8.3.20.0040.00420.16
8.3.10.0060.00323.61
8.3.00.0000.00718.98
8.2.180.0070.00718.54
8.2.170.0110.00422.96
8.2.160.0100.00320.52
8.2.150.0140.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0170.00022.30
8.2.110.0030.00720.58
8.2.100.0110.00317.76
8.2.90.0090.00017.75
8.2.80.0000.00819.17
8.2.70.0050.00317.67
8.2.60.0030.00618.03
8.2.50.0080.00018.10
8.2.40.0000.00922.31
8.2.30.0000.00718.25
8.2.20.0040.00417.76
8.2.10.0070.00017.94
8.2.00.0040.00417.68
8.1.280.0080.00625.92
8.1.270.0080.00022.02
8.1.260.0090.00926.35
8.1.250.0140.00428.09
8.1.240.0060.00323.78
8.1.230.0060.00619.08
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0030.00618.53
8.1.160.0000.00721.97
8.1.150.0040.00418.68
8.1.140.0000.00717.36
8.1.130.0030.00517.88
8.1.120.0000.00717.37
8.1.110.0080.00017.50
8.1.100.0000.00717.50
8.1.90.0030.00517.41
8.1.80.0040.00417.50
8.1.70.0070.00017.42
8.1.60.0040.00417.61
8.1.50.0050.00317.36
8.1.40.0040.00417.54
8.1.30.0000.00817.64
8.1.20.0000.00817.64
8.1.10.0030.00517.57
8.1.00.0000.00817.40
8.0.300.0060.00319.63
8.0.290.0080.00016.63
8.0.280.0030.00318.41
8.0.270.0090.00017.17
8.0.260.0030.00317.18
8.0.250.0070.00016.93
8.0.240.0040.00416.97
8.0.230.0050.00216.84
8.0.220.0040.00416.96
8.0.210.0070.00016.77
8.0.200.0000.00616.83
8.0.190.0030.00516.92
8.0.180.0040.00416.92
8.0.170.0000.00816.96
8.0.160.0000.00716.88
8.0.150.0000.00716.90
8.0.140.0000.00716.84
8.0.130.0060.00013.27
8.0.120.0030.00516.91
8.0.110.0020.00516.84
8.0.100.0080.00016.78
8.0.90.0040.00416.95
8.0.80.0070.01416.88
8.0.70.0000.00816.91
8.0.60.0000.00716.96
8.0.50.0040.00416.93
8.0.30.0080.01116.92
8.0.20.0100.00817.40
8.0.10.0040.00416.95
8.0.00.0070.01216.77
7.4.330.0060.00015.00
7.4.320.0000.00716.57
7.4.300.0070.00016.50
7.4.290.0030.00316.62
7.4.280.0030.00316.45
7.4.270.0000.00716.61
7.4.260.0030.00316.39
7.4.250.0060.00316.51
7.4.240.0010.00616.51
7.4.230.0030.00516.35
7.4.220.0130.00616.57
7.4.210.0080.00616.60
7.4.200.0030.00316.67
7.4.190.0070.00016.38
7.4.160.0120.00316.66
7.4.150.0100.00717.40
7.4.140.0130.00317.86
7.4.130.0110.00816.45
7.4.120.0080.00816.54
7.4.110.0110.00516.43
7.4.100.0130.00616.57
7.4.90.0140.00316.59
7.4.80.0090.01219.39
7.4.70.0030.01316.49
7.4.60.0080.00816.54
7.4.50.0050.00516.23
7.4.40.0060.01516.49
7.4.30.0060.01016.39
7.4.10.0100.01016.40
7.4.00.0030.01315.69
7.3.330.0030.00313.33
7.3.320.0030.00213.18
7.3.310.0030.00316.33
7.3.300.0070.00016.18
7.3.290.0040.01116.38
7.3.280.0080.00916.28
7.3.270.0080.00917.40
7.3.260.0090.00916.54
7.3.250.0150.00516.48
7.3.240.0080.00916.27
7.3.230.0130.00616.48
7.3.210.0090.00816.23
7.3.200.0060.01219.39
7.3.190.0100.01016.55
7.3.180.0060.00916.16
7.3.170.0070.01016.57
7.3.160.0090.00616.31
7.3.130.0030.01616.48
7.3.120.0050.01215.40
7.3.110.0000.01616.53
7.3.100.0100.00316.20
7.3.90.0060.01216.21
7.3.80.0030.01316.29
7.3.70.0070.00416.27
7.3.60.0030.00616.19
7.3.50.0090.00016.17
7.3.40.0000.01416.23
7.3.30.0000.01216.54
7.3.20.0090.00617.82
7.3.10.0060.00817.05
7.3.00.0060.00917.22
7.2.330.0090.00916.34
7.2.320.0080.00816.71
7.2.310.0100.00716.73
7.2.300.0090.01316.52
7.2.290.0060.01616.71
7.2.260.0110.00816.66
7.2.250.0100.01316.38
7.2.240.0060.01216.51
7.2.230.0040.01416.34
7.2.220.0110.00716.34
7.2.210.0070.01016.63
7.2.200.0040.01216.64
7.2.190.0060.00316.48
7.2.180.0090.00616.63
7.2.170.0070.00716.39
7.2.160.0030.00616.58
7.2.150.0030.01318.38
7.2.140.0060.00618.49
7.2.130.0050.00817.37
7.2.120.0070.00717.32
7.2.110.0030.01217.39
7.2.100.0040.00817.37
7.2.90.0070.00817.17
7.2.80.0070.00917.39
7.2.70.0060.00917.36
7.2.60.0080.00717.30
7.2.50.0060.00717.31
7.2.40.0060.00917.29
7.2.30.0100.00417.42
7.2.20.0070.00517.43
7.2.10.0020.01117.31
7.2.00.0060.00717.81
7.1.330.0040.01117.18
7.1.320.0040.01117.25
7.1.310.0060.00617.30
7.1.300.0150.00017.27
7.1.290.0060.00617.20
7.1.280.0090.00617.29
7.1.270.0070.00717.10
7.1.260.0070.00717.15
7.1.250.0050.00816.22
7.1.240.0160.00017.26
7.1.230.0070.00717.06
7.1.220.0000.01217.24
7.1.210.0090.00617.20
7.1.200.0040.00717.13
7.1.190.0060.00917.22
7.1.180.0080.00517.29
7.1.170.0030.01017.26
7.1.160.0090.00617.27
7.1.150.0080.00317.12
7.1.140.0030.01017.31
7.1.130.0030.01317.20
7.1.120.0070.01017.30
7.1.110.0000.01117.28
7.1.100.0120.00217.47
7.1.90.0000.01517.29
7.1.80.0030.00617.30
7.1.70.0050.00517.09
7.1.60.0080.01018.35
7.1.50.0100.00817.10
7.1.40.0080.00517.23
7.1.30.0030.01017.24
7.1.20.0040.01117.34
7.1.10.0160.00017.16
7.1.00.0090.03419.73
7.0.330.0040.01116.83
7.0.320.0040.00716.96
7.0.310.0070.00416.81
7.0.300.0060.00616.70
7.0.290.0090.00316.93
7.0.280.0000.01016.95
7.0.270.0080.00816.76
7.0.260.0070.00416.91
7.0.250.0040.00816.81
7.0.240.0030.00617.06
7.0.230.0030.00616.96
7.0.220.0070.00716.95
7.0.210.0090.00316.76
7.0.200.0040.00916.78
7.0.190.0040.00416.88
7.0.180.0060.00917.05
7.0.170.0030.01116.92
7.0.160.0000.01216.86
7.0.150.0100.00716.85
7.0.140.0050.04019.48
7.0.130.0040.00816.98
7.0.120.0070.01017.11
7.0.110.0030.00716.90
7.0.100.0000.01816.88
7.0.90.0090.00616.73
7.0.80.0040.00717.04
7.0.70.0030.01316.81
7.0.60.0090.04718.43
7.0.50.0100.02817.27
7.0.40.0090.04117.56
7.0.30.0150.04717.54
7.0.20.0180.03917.55
7.0.10.0050.02717.55
7.0.00.0030.03717.54
5.6.400.0030.00915.93
5.6.390.0100.00315.88
5.6.380.0030.01015.87
5.6.370.0060.00915.99
5.6.360.0030.00915.96
5.6.350.0070.00815.71
5.6.340.0070.01015.68
5.6.330.0080.00815.75
5.6.320.0030.00715.91
5.6.310.0100.00315.95
5.6.300.0140.00315.70
5.6.290.0120.00415.75
5.6.280.0030.03018.54
5.6.270.0030.00615.88
5.6.260.0030.01315.76
5.6.250.0000.01516.06
5.6.240.0090.00615.74
5.6.230.0000.01415.81
5.6.220.0070.01115.83
5.6.210.0050.04318.21
5.6.200.0060.03616.99
5.6.190.0060.02818.23
5.6.180.0250.04418.14
5.6.170.0280.03318.19
5.6.160.0050.05018.12
5.6.150.0050.04517.05
5.6.140.0030.04717.14
5.6.130.0080.04617.13
5.6.120.0050.04618.46
5.6.110.0080.02818.42
5.6.100.0120.04218.51
5.6.90.0050.03518.52
5.6.80.0000.02918.23
5.6.70.0060.00915.94
5.6.60.0060.00816.01
5.6.50.0030.01415.91
5.6.40.0000.01115.64
5.6.30.0030.01015.64
5.6.20.0000.01215.92
5.6.10.0120.00315.74
5.6.00.0100.00716.07
5.5.380.0070.00715.75
5.5.370.0070.00715.75
5.5.360.0070.01015.96
5.5.350.0060.02417.99
5.5.340.0110.02516.85
5.5.330.0050.03118.14
5.5.320.0140.03918.01
5.5.310.0190.03818.07
5.5.300.0030.03516.82
5.5.290.0070.02716.84
5.5.280.0030.02518.24
5.5.270.0050.03718.26
5.5.260.0070.03818.37
5.5.250.0000.04318.00
5.5.240.0020.02217.95
5.5.230.0050.00515.82
5.5.220.0110.00315.69
5.5.210.0080.00415.85
5.5.200.0030.00615.51
5.5.190.0070.00715.77
5.5.180.0030.01015.59
5.5.170.0060.00615.79
5.5.160.0070.00315.70
5.5.150.0070.00715.88
5.5.140.0070.00815.91
5.5.130.0130.00315.45
5.5.120.0040.01415.83
5.5.110.0100.00715.69
5.5.100.0070.01015.63
5.5.90.0040.01115.86
5.5.80.0080.00415.46
5.5.70.0070.00715.75
5.5.60.0120.00315.71
5.5.50.0070.00715.78
5.5.40.0090.00315.45
5.5.30.0040.01115.71
5.5.20.0040.00715.79
5.5.10.0090.00015.66
5.5.00.0070.00715.72
5.4.450.0270.03216.02
5.4.440.0400.02316.07
5.4.430.0420.03016.12
5.4.420.0380.03016.01
5.4.410.0070.03015.83
5.4.400.0520.03715.77
5.4.390.0460.02515.80
5.4.380.0150.02715.75
5.4.370.0080.03015.62
5.4.360.0080.03015.70
5.4.350.0100.02815.69
5.4.340.0060.03515.76
5.4.330.0040.00712.71
5.4.320.0040.02312.52
5.4.310.0040.02412.57
5.4.300.0070.02112.52
5.4.290.0080.02412.53
5.4.280.0060.02212.46
5.4.270.0050.02312.39
5.4.260.0060.02312.42
5.4.250.0060.02212.51
5.4.240.0040.02312.38
5.4.230.0040.02412.35
5.4.220.0020.02912.49
5.4.210.0040.02612.50
5.4.200.0070.02512.46
5.4.190.0080.02012.42
5.4.180.0060.02412.46
5.4.170.0040.02412.44
5.4.160.0070.02012.48
5.4.150.0030.02312.50
5.4.140.0060.01912.33
5.4.130.0070.02012.29
5.4.120.0060.02412.36
5.4.110.0050.02312.30
5.4.100.0040.02212.28
5.4.90.0080.01812.30
5.4.80.0040.02512.24
5.4.70.0090.01612.36
5.4.60.0050.02312.32
5.4.50.0020.02312.31
5.4.40.0030.02212.30
5.4.30.0040.02312.24
5.4.20.0040.02112.17
5.4.10.0040.02012.27
5.4.00.0040.02311.93
5.3.290.0060.03112.97
5.3.280.0090.02212.87
5.3.270.0060.02612.88
5.3.260.0050.02412.89
5.3.250.0040.02312.88
5.3.240.0040.02712.82
5.3.230.0060.02912.85
5.3.220.0080.03012.90
5.3.210.0070.03312.76
5.3.200.0090.03212.80
5.3.190.0060.02812.72
5.3.180.0040.02512.97
5.3.170.0050.02412.84
5.3.160.0060.02912.80
5.3.150.0070.02912.92
5.3.140.0130.03012.79
5.3.130.0080.03512.81
5.3.120.0080.03412.75
5.3.110.0040.03512.81
5.3.100.0050.03512.49
5.3.90.0110.02712.47
5.3.80.0060.03112.45
5.3.70.0080.02612.47
5.3.60.0130.02412.50
5.3.50.0090.03012.46
5.3.40.0070.02412.52
5.3.30.0050.02712.48
5.3.20.0060.02512.35
5.3.10.0070.02412.25
5.3.00.0070.03012.17
5.2.170.0110.0479.23
5.2.160.0070.0389.22
5.2.150.0090.0439.23
5.2.140.0070.0409.22
5.2.130.0060.0369.18
5.2.120.0040.0329.18
5.2.110.0070.0339.18
5.2.100.0040.0329.18
5.2.90.0060.0309.18
5.2.80.0060.0409.17
5.2.70.0050.0329.18
5.2.60.0060.0329.13
5.2.50.0060.0319.10
5.2.40.0100.0279.07
5.2.30.0080.0359.05
5.2.20.0040.0319.04
5.2.10.0040.0318.95
5.2.00.0060.0298.81
5.1.60.0060.0248.09
5.1.50.0070.0238.09
5.1.40.0050.0268.07
5.1.30.0040.0288.41
5.1.20.0080.0258.44
5.1.10.0060.0248.16
5.1.00.0060.0378.16
5.0.50.0050.0246.64
5.0.40.0010.0226.50
5.0.30.0050.0326.32
5.0.20.0090.0226.28
5.0.10.0020.0216.26
5.0.00.0060.0456.25
4.4.90.0030.0234.78
4.4.80.0050.0144.75
4.4.70.0040.0164.75
4.4.60.0040.0164.76
4.4.50.0050.0144.77
4.4.40.0030.0254.70
4.4.30.0070.0124.76
4.4.20.0030.0164.84
4.4.10.0010.0184.85
4.4.00.0020.0264.75
4.3.110.0040.0154.67
4.3.100.0040.0154.66
4.3.90.0050.0134.64
4.3.80.0020.0264.58
4.3.70.0050.0134.63
4.3.60.0050.0164.63
4.3.50.0020.0184.63
4.3.40.0020.0264.54
4.3.30.0020.0163.28
4.3.20.0010.0193.26
4.3.10.0020.0163.22
4.3.00.0070.0237.32

preferences:
49.44 ms | 400 KiB | 5 Q