3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function example() { echo "I am the original function A::example().<br />\n"; } } class B extends A { function example() { echo "I am the redefined function B::example().<br />\n"; A::example(); } } // there is no object of class A. // this will print // I am the original function A::example().<br /> A::example(); // create an object of class B. $b = new B; // this will print // I am the redefined function B::example().<br /> // I am the original function A::example().<br /> $b->example();

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.70.0100.00718.56
8.3.60.0150.00018.54
8.3.50.0100.01021.14
8.3.40.0120.00318.84
8.3.30.0100.00719.05
8.3.20.0080.00020.20
8.3.10.0080.00023.54
8.3.00.0100.00319.18
8.2.180.0130.01016.63
8.2.170.0040.01122.96
8.2.160.0100.00320.53
8.2.150.0140.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00419.13
8.2.110.0100.00022.09
8.2.100.0060.00617.91
8.2.90.0030.00619.23
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0050.00317.80
8.2.50.0030.00618.07
8.2.40.0060.00319.88
8.2.30.0070.00018.11
8.2.20.0000.00717.79
8.2.10.0000.00718.01
8.2.00.0070.00019.50
8.1.280.0090.00625.92
8.1.270.0030.00623.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0080.00419.22
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0000.00721.95
8.1.150.0000.00718.37
8.1.140.0030.00517.25
8.1.130.0030.00317.72
8.1.120.0000.00717.23
8.1.110.0030.00517.36
8.1.100.0040.00417.31
8.1.90.0040.00317.36
8.1.80.0000.00717.32
8.1.70.0000.00717.25
8.1.60.0040.00417.49
8.1.50.0050.00317.36
8.1.40.0040.00417.40
8.1.30.0000.00817.54
8.1.20.0050.00317.56
8.1.10.0040.00417.44
8.1.00.0070.00317.30
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.31
8.0.270.0030.00317.26
8.0.260.0000.00717.11
8.0.250.0070.00016.97
8.0.240.0000.00716.87
8.0.230.0000.00716.82
8.0.220.0000.00716.86
8.0.210.0030.00316.89
8.0.200.0030.00316.91
8.0.190.0000.00816.95
8.0.180.0030.00616.84
8.0.170.0000.00816.88
8.0.160.0000.00816.73
8.0.150.0000.00716.90
8.0.140.0070.00016.74
8.0.130.0030.00613.28
8.0.120.0050.00316.88
8.0.110.0040.00416.87
8.0.100.0070.00016.89
8.0.90.0040.00416.71
8.0.80.0090.00616.90
8.0.70.0000.00716.96
8.0.60.0000.00716.80
8.0.50.0020.00516.76
8.0.30.0130.00617.06
8.0.20.0130.00617.40
8.0.10.0000.00816.85
8.0.00.0060.01216.79
7.4.330.0030.00315.08
7.4.320.0060.00016.53
7.4.300.0060.00016.57
7.4.290.0000.00716.41
7.4.280.0090.00016.64
7.4.270.0070.00016.50
7.4.260.0000.00716.47
7.4.250.0040.00416.54
7.4.240.0020.00516.51
7.4.230.0070.00016.48
7.4.220.0110.00716.60
7.4.210.0140.00616.62
7.4.200.0000.00716.51
7.4.160.0080.00816.40
7.4.150.0140.00417.40
7.4.140.0100.00717.86
7.4.130.0050.01216.57
7.4.120.0090.00816.47
7.4.110.0070.01016.55
7.4.100.0070.01016.52
7.4.90.0070.01016.63
7.4.80.0130.00519.39
7.4.70.0090.00616.65
7.4.60.0130.00316.58
7.4.50.0040.00416.65
7.4.40.0130.00316.45
7.4.30.0120.00416.53
7.4.00.0070.00714.93
7.3.330.0020.00213.14
7.3.320.0050.00013.07
7.3.310.0040.00316.29
7.3.300.0030.00316.17
7.3.290.0110.00416.35
7.3.280.0070.01016.32
7.3.270.0130.00317.40
7.3.260.0090.00916.36
7.3.250.0140.00616.48
7.3.240.0070.01416.27
7.3.230.0080.00816.56
7.3.210.0080.01216.39
7.3.200.0090.00619.39
7.3.190.0060.01616.44
7.3.180.0090.00616.23
7.3.170.0090.00616.45
7.3.160.0030.01616.28
7.3.120.0080.00914.79
7.3.110.0070.01014.82
7.3.100.0090.00614.79
7.3.90.0000.01414.84
7.3.80.0060.00914.93
7.3.70.0000.01114.69
7.3.60.0070.01014.57
7.3.50.0060.00314.70
7.3.40.0040.00414.61
7.3.30.0090.00614.48
7.3.20.0080.00316.58
7.3.10.0130.00016.58
7.3.00.0090.00016.37
7.2.330.0070.01016.71
7.2.320.0030.01416.63
7.2.310.0000.01816.58
7.2.300.0000.02316.62
7.2.290.0060.00916.38
7.2.250.0110.00715.21
7.2.240.0030.01614.86
7.2.230.0120.00314.91
7.2.220.0100.00715.26
7.2.210.0030.00714.77
7.2.200.0000.01514.59
7.2.190.0000.01014.83
7.2.180.0040.00414.77
7.2.170.0030.00614.87
7.2.60.0040.00716.61
7.2.00.0060.00619.33
7.1.330.0040.00815.67
7.1.320.0080.00515.42
7.1.310.0040.00815.43
7.1.300.0110.00315.73
7.1.290.0120.00315.58
7.1.280.0030.01015.74
7.1.270.0070.01015.75
7.1.260.0040.01115.70
7.1.200.0060.00815.36
7.1.100.0000.01218.06
7.1.70.0000.01017.11
7.1.60.0040.01519.70
7.1.50.0130.00916.65
7.1.00.0000.08022.45
7.0.200.0060.00916.72
7.0.140.0070.06322.15
7.0.60.0170.03020.08
7.0.50.0030.04717.89
7.0.40.0100.08020.07
7.0.30.0630.06020.23
7.0.20.0300.06720.20
7.0.10.0330.05720.25
7.0.00.0100.08720.16
5.6.280.0070.07021.09
5.6.210.0130.07720.51
5.6.200.0200.05318.19
5.6.190.0130.07320.63
5.6.180.0230.08020.60
5.6.170.0330.07320.47
5.6.160.0100.08320.43
5.6.150.0070.09018.16
5.6.140.0070.07718.11
5.6.130.0100.08318.24
5.6.120.0100.08721.08
5.6.110.0030.05321.01
5.6.100.0030.08321.08
5.6.90.0200.07021.10
5.6.80.0070.07720.39
5.6.70.0230.07320.38
5.5.350.0170.06720.39
5.5.340.0100.04718.05
5.5.330.0030.04320.28
5.5.320.0130.05320.22
5.5.310.0330.06720.41
5.5.300.0000.04017.96
5.5.290.0100.04017.94
5.5.280.0030.04320.89
5.5.270.0030.06720.88
5.5.260.0130.05720.87
5.5.250.0200.07020.55
5.5.240.0100.03720.15
5.4.450.0730.05319.63
5.4.440.0770.06319.48
5.4.430.0070.05719.30
5.4.420.0670.00019.52
5.4.410.0200.06718.96
5.4.400.0300.05318.89
5.4.390.0230.05318.62
5.4.380.0270.05318.50
5.4.370.0100.03718.68
5.4.360.0170.03718.72
5.4.350.0070.06612.02
5.4.340.0090.04612.02
5.4.320.0050.03912.50
5.4.310.0070.03712.50
5.4.300.0090.03412.50
5.4.290.0040.04012.50
5.4.280.0060.03512.39
5.4.270.0040.03912.39
5.4.260.0060.05112.40
5.4.250.0080.04512.39
5.4.240.0050.03712.39
5.4.230.0070.03712.39
5.4.220.0050.04212.38
5.4.210.0070.03612.39
5.4.200.0060.03812.39
5.4.190.0070.03712.38
5.4.180.0060.03612.38
5.4.170.0020.04012.39
5.4.160.0080.03812.39
5.4.150.0060.03612.39
5.4.140.0030.04012.07
5.4.130.0050.04112.06
5.4.120.0070.03812.02
5.4.110.0050.03712.01
5.4.100.0070.03812.01
5.4.90.0060.03812.02
5.4.80.0060.03712.01
5.4.70.0100.03712.01
5.4.60.0080.03912.01
5.4.50.0090.03912.01
5.4.40.0050.03611.99
5.4.30.0040.03711.99
5.4.20.0080.03412.00
5.4.10.0050.04411.99
5.4.00.0090.03411.48
5.3.290.0040.04112.80
5.3.280.0060.04012.71
5.3.270.0090.03812.72
5.3.260.0110.04512.72
5.3.250.0080.05212.72
5.3.240.0060.05412.71
5.3.230.0050.03912.71
5.3.220.0060.03712.68
5.3.210.0050.04212.68
5.3.200.0110.03312.68
5.3.190.0090.04612.68
5.3.180.0060.03812.67
5.3.170.0030.04012.67
5.3.160.0070.03512.67
5.3.150.0040.04712.67
5.3.140.0070.03612.66
5.3.130.0070.03912.66
5.3.120.0070.04212.66
5.3.110.0120.04412.66
5.3.100.0070.04712.12
5.3.90.0060.03812.11
5.3.80.0090.04312.10
5.3.70.0080.03612.10
5.3.60.0070.03712.07
5.3.50.0110.04412.03
5.3.40.0060.03612.03
5.3.30.0070.03611.98
5.3.20.0070.03611.76
5.3.10.0060.03411.73
5.3.00.0060.03611.72
5.2.170.0060.0309.22
5.2.160.0010.0339.23
5.2.150.0030.0349.22
5.2.140.0050.0319.22
5.2.130.0070.0369.18
5.2.120.0050.0319.18
5.2.110.0050.0309.19
5.2.100.0050.0329.18
5.2.90.0070.0289.18
5.2.80.0050.0319.17
5.2.70.0040.0339.18
5.2.60.0070.0289.13
5.2.50.0050.0299.09
5.2.40.0070.0269.08
5.2.30.0070.0279.05
5.2.20.0030.0319.04
5.2.10.0050.0288.94
5.2.00.0030.0318.81
5.1.60.0040.0258.09
5.1.50.0020.0278.09
5.1.40.0030.0258.07
5.1.30.0040.0268.42
5.1.20.0050.0268.43
5.1.10.0030.0268.17
5.1.00.0020.0308.17
5.0.50.0050.0206.64
5.0.40.0040.0186.50
5.0.30.0020.0326.32
5.0.20.0040.0226.28
5.0.10.0030.0206.27
5.0.00.0040.0306.26
4.4.90.0020.0174.78
4.4.80.0030.0224.76
4.4.70.0020.0164.75
4.4.60.0050.0214.75
4.4.50.0040.0144.77
4.4.40.0020.0254.70
4.4.30.0050.0144.76
4.4.20.0040.0164.84
4.4.10.0020.0174.84
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0030.0244.64
4.3.80.0030.0304.58
4.3.70.0030.0144.63
4.3.60.0030.0174.63
4.3.50.0010.0174.63
4.3.40.0030.0244.54
4.3.30.0010.0173.30
4.3.20.0010.0173.28
4.3.10.0020.0163.24
4.3.00.0070.0237.72

preferences:
35.62 ms | 401 KiB | 5 Q