3v4l.org

run code in 300+ PHP versions simultaneously
<?php class dad { function dad() { // implements some logic } } class child extends dad { function child() { echo "I'm " , get_parent_class($this) , "'s son\n"; } } class child2 extends dad { function child2() { echo "I'm " , get_parent_class('child2') , "'s son too\n"; } } $foo = new child(); $foo->child(); $bar = new child2(); $foo->child2(); ?>

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.0150.00616.50
8.3.50.0150.00317.55
8.3.40.0110.00418.54
8.3.30.0090.00618.50
8.3.20.0050.00318.91
8.3.10.0040.00420.53
8.3.00.0050.00317.75
8.2.180.0060.01216.75
8.2.170.0070.00722.96
8.2.160.0130.00022.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00719.77
8.2.110.0100.00020.95
8.2.100.0080.00417.91
8.2.90.0040.00419.21
8.2.80.0080.00018.03
8.2.70.0080.00017.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0030.00519.95
8.2.30.0000.00717.96
8.2.20.0040.00417.70
8.2.10.0000.00817.68
8.2.00.0000.00717.73
8.1.280.0040.01125.92
8.1.270.0080.00024.66
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0080.00020.80
8.1.230.0090.00320.92
8.1.220.0080.00017.74
8.1.210.0040.00418.91
8.1.200.0060.00317.25
8.1.190.0030.00617.54
8.1.180.0040.00418.10
8.1.170.0000.00818.76
8.1.160.0000.00718.73
8.1.150.0020.00518.62
8.1.140.0030.00617.37
8.1.130.0030.00317.89
8.1.120.0070.00017.29
8.1.110.0040.00417.40
8.1.100.0040.00417.41
8.1.90.0040.00417.46
8.1.80.0000.00817.31
8.1.70.0000.00717.29
8.1.60.0070.00017.61
8.1.50.0020.00517.48
8.1.40.0050.00217.51
8.1.30.0000.00917.57
8.1.20.0060.00317.52
8.1.10.0050.00317.60
8.1.00.0070.00017.49
8.0.300.0040.00419.85
8.0.290.0040.00416.75
8.0.280.0000.00718.44
8.0.270.0040.00417.25
8.0.260.0000.00816.96
8.0.250.0030.00316.93
8.0.240.0050.00316.91
8.0.230.0030.00316.86
8.0.220.0030.00316.86
8.0.210.0070.00016.77
8.0.200.0030.00316.92
8.0.190.0070.00016.96
8.0.180.0000.00716.77
8.0.170.0090.00016.79
8.0.160.0040.00316.93
8.0.150.0070.00016.89
8.0.140.0000.00816.84
8.0.130.0030.00313.31
8.0.120.0030.00616.84
8.0.110.0040.00417.00
8.0.100.0080.00016.70
8.0.90.0040.00416.77
8.0.80.0110.00416.85
8.0.70.0040.00416.95
8.0.60.0000.00716.74
8.0.50.0040.00416.75
8.0.30.0090.01416.99
8.0.20.0060.01117.07
8.0.10.0040.00417.07
8.0.00.0080.01216.66
7.4.330.0050.00014.71
7.4.320.0030.00316.44
7.4.300.0070.00016.49
7.4.290.0030.00316.54
7.4.280.0000.01016.63
7.4.270.0050.00316.44
7.4.260.0030.00313.30
7.4.250.0040.00416.52
7.4.240.0000.00716.65
7.4.230.0030.00316.69
7.4.220.0100.01316.60
7.4.210.0080.00916.60
7.4.200.0000.00716.64
7.4.190.0000.00716.78
7.4.160.0040.01116.40
7.4.150.0030.01417.07
7.4.140.0090.00817.25
7.4.130.0060.01616.57
7.4.120.0120.00416.51
7.4.110.0090.00916.69
7.4.100.0150.00916.51
7.4.90.0070.01016.44
7.4.80.0130.01018.80
7.4.70.0100.01416.48
7.4.60.0110.00716.53
7.4.50.0090.00023.17
7.4.40.0050.00521.69
7.4.30.0060.01216.61
7.3.330.0030.00313.36
7.3.320.0070.00013.16
7.3.310.0030.00316.31
7.3.300.0070.00016.41
7.3.290.0030.01016.26
7.3.280.0130.00516.33
7.3.270.0110.00717.07
7.3.260.0120.00818.24
7.3.250.0120.00616.47
7.3.240.0060.01116.58
7.3.230.0100.00816.48
7.3.210.0120.00616.57
7.3.200.0100.01019.39
7.3.190.0070.01016.45
7.3.180.0000.01616.32
7.3.170.0070.01416.63
7.3.160.0110.00516.42
7.2.330.0090.00916.63
7.2.320.0200.00016.40
7.2.310.0180.00016.68
7.2.300.0070.01016.45
7.2.290.0110.00516.74
7.1.70.0040.00817.27
7.1.60.0080.00817.32
7.1.50.0170.00016.96
7.1.40.0000.01516.76
7.1.30.0070.00916.74
7.1.20.0120.00616.74
7.1.10.0030.01016.68
7.1.00.0040.00916.70
7.0.200.0040.00716.85
7.0.190.0060.00616.41
7.0.180.0080.00416.03
7.0.170.0030.00916.29
7.0.160.0120.00016.28
7.0.150.0030.01016.30
7.0.140.0090.00316.35
7.0.130.0070.00716.49
7.0.120.0120.00616.46
7.0.110.0000.01216.18
7.0.100.0040.00916.12
7.0.90.0090.00616.22
7.0.80.0080.00416.51
7.0.70.0050.00916.40
7.0.60.0000.01216.16
7.0.50.0530.00614.78
7.0.40.0060.00614.78
7.0.30.0080.00414.78
7.0.20.0130.00014.78
7.0.10.0150.00014.78
7.0.00.0080.00814.78
5.6.300.0080.04220.59
5.6.290.0000.05320.80
5.6.280.0110.04020.88
5.6.270.0040.05021.01
5.6.260.0000.06120.88
5.6.250.0100.04120.87
5.6.240.0100.04120.85
5.6.230.0000.05620.84
5.6.220.0110.04620.91
5.6.210.0070.04620.64
5.6.200.0100.04321.02
5.6.190.0160.05920.87
5.6.180.0090.04420.84
5.6.170.0160.03621.04
5.6.160.0070.08320.99
5.6.150.0110.04720.82
5.6.140.0060.05820.87
5.6.130.0030.04821.05
5.6.120.0130.07821.03
5.6.110.0090.04121.00
5.6.100.0410.03020.76
5.6.90.0160.03520.95
5.6.80.0100.04120.25
5.6.70.0040.04620.36
5.6.60.0080.04720.00
5.6.50.0160.04920.32
5.6.40.0070.04620.13
5.6.30.0120.06520.34
5.6.20.0040.04720.11
5.6.10.0070.04920.30
5.6.00.0030.05220.25
5.5.380.0140.03517.65
5.5.370.0100.03917.65
5.5.360.0100.05517.60
5.5.350.0060.08417.57
5.5.340.0060.04118.19
5.5.330.0030.04718.04
5.5.320.0040.04917.85
5.5.310.0030.04018.04
5.5.300.0030.04318.09
5.5.290.0000.09018.09
5.5.280.0100.08318.13
5.5.270.0040.04218.02
5.5.260.0150.04117.85
5.5.250.0070.04317.67
5.5.240.0030.04417.09
5.5.230.0070.04117.44
5.5.220.0070.04317.40
5.5.210.0100.03617.47
5.5.200.0070.07717.50
5.5.190.0030.05917.43
5.5.180.0070.04417.36
5.5.160.0040.04217.21
5.5.150.0040.04317.52
5.5.140.0060.03917.43
5.5.130.0000.04517.06
5.5.120.0040.03917.21
5.5.110.0030.03817.43
5.5.100.0000.04116.97
5.5.90.0000.04117.11
5.5.80.0040.03617.34
5.5.70.0070.03717.30
5.5.60.0000.04717.05
5.5.50.0030.05217.28
5.5.40.0100.06917.34
5.5.30.0030.04017.26
5.5.20.0030.06917.28
5.5.10.0090.04117.05
5.5.00.0000.04817.29
5.4.450.0030.05019.54
5.4.440.0000.04519.28
5.4.430.0000.04919.24
5.4.420.0030.04119.45
5.4.410.0030.04919.35
5.4.400.0100.03619.19
5.4.390.0030.04418.89
5.4.380.0100.04218.93
5.4.370.0070.03819.07
5.4.360.0090.03719.15
5.4.350.0040.04018.96
5.4.340.0000.04718.96
5.4.320.0030.04019.18
5.4.310.0000.04418.95
5.4.300.0060.04219.08
5.4.290.0060.03818.87
5.4.280.0070.03818.89
5.4.270.0070.03319.11
5.4.260.0090.03119.07
5.4.250.0100.03518.95
5.4.240.0000.04419.03
5.4.230.0090.03419.17
5.4.220.0070.04019.17
5.4.210.0030.03718.95
5.4.200.0030.03819.20
5.4.190.0030.04818.96
5.4.180.0090.03518.88
5.4.170.0060.04019.06
5.4.160.0030.03819.06
5.4.150.0030.04119.06
5.4.140.0000.04316.60
5.4.130.0000.03816.81
5.4.120.0030.03916.65
5.4.110.0000.04516.67
5.4.100.0040.03516.74
5.4.90.0070.03416.68
5.4.80.0030.03716.72
5.4.70.0060.03116.82
5.4.60.0160.05516.71
5.4.50.0090.03816.68
5.4.40.0000.04316.73
5.4.30.0000.04616.55
5.4.20.0100.03116.70
5.4.10.0000.07616.61
5.4.00.0030.03816.21
5.3.290.0030.05314.93
5.3.280.0100.03214.84
5.3.270.0000.04714.90
5.3.260.0040.04214.78
5.3.250.0070.03714.79
5.3.240.0000.04514.78
5.3.230.0030.03814.78
5.3.220.0070.03114.83
5.3.210.0030.03714.78
5.3.200.0030.03714.78
5.3.190.0030.03714.78
5.3.180.0170.04614.78
5.3.170.0030.04014.84
5.3.160.0100.07514.78
5.3.150.0000.05114.78
5.3.140.0030.03614.80
5.3.130.0070.03914.78
5.3.120.0030.04014.78
5.3.110.0030.04014.78
5.3.100.0030.03814.78
5.3.90.0000.04214.78
5.3.80.0000.04114.78
5.3.70.0000.04114.78
5.3.60.0060.03614.78
5.3.50.0100.03214.78
5.3.40.0000.03914.78
5.3.30.0030.03714.78
5.3.20.0070.05514.78
5.3.10.0000.04414.78
5.3.00.0040.03414.78
5.2.170.0000.03114.78
5.2.160.0180.02114.78
5.2.150.0000.03114.78
5.2.140.0040.03214.78
5.2.130.0000.03214.78
5.2.120.0030.03014.78
5.2.110.0030.02714.78
5.2.100.0030.02914.78
5.2.90.0090.02814.78
5.2.80.0030.03114.78
5.2.70.0000.03414.78
5.2.60.0030.02814.78
5.2.50.0040.03214.78
5.2.40.0030.02714.78
5.2.30.0030.04814.78
5.2.20.0030.02814.78
5.2.10.0000.03214.78
5.2.00.0030.03814.78
5.1.60.0000.02714.78
5.1.50.0030.03214.78
5.1.40.0030.02314.78
5.1.30.0060.03714.78
5.1.20.0070.02414.78
5.1.10.0000.02914.78
5.1.00.0030.04014.78
5.0.50.0030.02514.78
5.0.40.0040.02214.78
5.0.30.0000.03314.78
5.0.20.0140.02114.78
5.0.10.0000.02814.78
5.0.00.0030.03014.78
4.4.90.0030.01414.78
4.4.80.0000.01814.78
4.4.70.0130.01314.78
4.4.60.0030.01514.78
4.4.50.0000.01814.78
4.4.40.0040.02514.78
4.4.30.0000.01914.78
4.4.20.0030.01414.78
4.4.10.0000.01814.78
4.4.00.0000.02814.78
4.3.110.0060.01514.78
4.3.100.0030.01614.78
4.3.90.0000.01714.78
4.3.80.0000.02714.78
4.3.70.0000.01814.78
4.3.60.0000.01914.78
4.3.50.0000.01714.78
4.3.40.0030.04914.78
4.3.30.0030.02214.78
4.3.20.0040.02914.78
4.3.10.0030.01714.78
4.3.00.0000.01814.78

preferences:
48.39 ms | 400 KiB | 5 Q