3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __construct() { parent::setA(); } function setA() { echo "class a"; } } class B extends A { function setA() { echo "class b"; } } new B;

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.0130.00918.39
8.3.50.0100.00822.11
8.3.40.0030.01218.71
8.3.30.0070.00718.83
8.3.20.0060.00320.13
8.3.10.0040.01122.08
8.3.00.0040.00422.49
8.2.180.0130.00316.63
8.2.170.0060.00922.96
8.2.160.0110.00420.64
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00317.50
8.2.110.0070.00319.21
8.2.100.0030.00917.84
8.2.90.0030.00618.95
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0090.00017.90
8.2.50.0050.00318.07
8.2.40.0060.00318.09
8.2.30.0050.00317.98
8.2.20.0000.00817.58
8.2.10.0040.00417.60
8.2.00.0000.00717.54
8.1.280.0080.00525.92
8.1.270.0090.00021.92
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00922.62
8.1.230.0070.00417.82
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.22
8.1.190.0000.00717.16
8.1.180.0050.00318.64
8.1.170.0030.00618.50
8.1.160.0040.00422.00
8.1.150.0000.00818.37
8.1.140.0050.00317.41
8.1.130.0000.00717.67
8.1.120.0000.00717.23
8.1.110.0000.00817.32
8.1.100.0000.00817.32
8.1.90.0040.00417.30
8.1.80.0040.00417.20
8.1.70.0000.00717.29
8.1.60.0040.00417.52
8.1.50.0040.00417.34
8.1.40.0000.00817.37
8.1.30.0030.00517.43
8.1.20.0040.00417.40
8.1.10.0070.00017.42
8.1.00.0000.00817.34
8.0.300.0050.00218.77
8.0.290.0070.00016.91
8.0.280.0050.00318.35
8.0.270.0000.00817.12
8.0.260.0060.00016.74
8.0.250.0030.00316.83
8.0.240.0060.00316.79
8.0.230.0030.00616.80
8.0.220.0000.00716.70
8.0.210.0000.00716.71
8.0.200.0030.00316.87
8.0.190.0030.00316.89
8.0.180.0070.00016.83
8.0.170.0040.00416.79
8.0.160.0060.00316.71
8.0.150.0000.00716.77
8.0.140.0000.00716.81
8.0.130.0090.00013.28
8.0.120.0000.00716.78
8.0.110.0040.00416.79
8.0.100.0000.00816.61
8.0.90.0040.00416.81
8.0.80.0120.00916.77
8.0.70.0040.00416.83
8.0.60.0050.00216.69
8.0.50.0000.00716.83
8.0.30.0050.01417.00
8.0.20.0110.00817.40
8.0.10.0030.00416.79
8.0.00.0130.00616.70
7.4.330.0000.00515.00
7.4.320.0000.00616.52
7.4.300.0060.00016.48
7.4.290.0030.00716.55
7.4.280.0030.00316.35
7.4.270.0000.00616.60
7.4.260.0030.00316.62
7.4.250.0030.00616.40
7.4.240.0070.00016.62
7.4.230.0060.00016.61
7.4.220.0030.01516.56
7.4.210.0080.00716.53
7.4.200.0030.00316.32
7.4.190.0000.00716.43
7.4.160.0060.00916.23
7.4.150.0200.00317.40
7.4.140.0090.00917.86
7.4.130.0050.01216.47
7.4.120.0030.01516.48
7.4.110.0160.00616.57
7.4.100.0110.01116.28
7.4.90.0150.00316.48
7.4.80.0030.01319.39
7.4.70.0100.01016.41
7.4.60.0030.01516.38
7.4.50.0030.00316.47
7.4.40.0060.00922.77
7.4.30.0160.00316.40
7.4.00.0110.00715.08
7.3.330.0030.00313.37
7.3.320.0000.00613.16
7.3.310.0000.00716.19
7.3.300.0030.00316.37
7.3.290.0120.00616.29
7.3.280.0060.01416.33
7.3.270.0070.00917.40
7.3.260.0310.02116.37
7.3.250.0150.00216.42
7.3.240.0120.00816.20
7.3.230.0070.01016.56
7.3.210.0130.00316.29
7.3.200.0150.00919.39
7.3.190.0110.01116.29
7.3.180.0110.01116.37
7.3.170.0090.01116.46
7.3.160.0060.01216.54
7.3.120.0040.01415.04
7.2.330.0030.01316.50
7.2.320.0070.01016.57
7.2.310.0100.00716.60
7.2.300.0030.01316.54
7.2.290.0070.01316.36
7.2.60.0100.00316.75
7.2.00.0000.01319.13
7.1.200.0030.01015.57
7.1.100.0030.00918.03
7.1.70.0060.00617.04
7.1.60.0130.01019.82
7.1.50.0040.01116.98
7.1.00.0030.09022.54
7.0.200.0080.00416.56
7.0.140.0000.07721.95
7.0.60.0000.09019.78
7.0.50.0000.05317.72
7.0.40.0030.04320.14
7.0.30.0170.05020.11
7.0.20.0230.07720.08
7.0.10.0230.07020.15
7.0.00.0100.08320.08
5.6.280.0070.06721.16
5.6.210.0070.04020.68
5.6.200.0030.04018.16
5.6.190.0100.06720.77
5.6.180.4170.03720.64
5.6.170.0300.08020.71
5.6.160.0030.08720.45
5.6.150.0130.05318.17
5.6.140.0000.06318.25
5.6.130.0070.03718.18
5.6.120.0130.08021.13
5.6.110.0100.08320.95
5.6.100.0100.04020.95
5.6.90.0070.08021.11
5.6.80.0030.08320.51
5.6.70.0230.07320.35
5.5.350.0100.06320.47
5.5.340.0170.07017.98
5.5.330.0000.06020.21
5.5.320.0230.07320.34
5.5.310.0270.07720.37
5.5.300.0130.06018.08
5.5.290.0130.05718.01
5.5.280.0100.07720.97
5.5.270.0170.05320.89
5.5.260.0000.04720.88
5.5.250.0070.07720.46
5.5.240.0100.07020.19
5.4.450.0430.05719.47
5.4.440.0370.06319.19
5.4.430.0100.05719.63
5.4.420.0070.07319.46
5.4.410.0230.06019.42
5.4.400.0900.00018.72
5.4.390.0800.00018.75
5.4.380.0370.05018.55
5.4.370.0370.05318.56
5.4.360.0270.05018.71
5.4.350.0270.05718.59
5.4.340.0270.04018.52
5.4.320.0070.03812.50
5.4.310.0060.03712.50
5.4.300.0080.04012.50
5.4.290.0060.03512.50
5.4.280.0080.04312.40
5.4.270.0070.04112.40
5.4.260.0170.06718.95
5.4.250.0100.05719.00
5.4.240.0130.05019.00
5.4.230.0130.06018.96
5.4.220.0230.04719.02
5.4.210.0270.06018.83
5.4.200.0200.05018.96
5.4.190.0170.05719.00
5.4.180.0000.06018.89
5.4.170.0100.05318.80
5.4.160.0200.04318.89
5.4.150.0030.05718.98
5.4.140.0130.06316.45
5.4.130.0130.07016.60
5.4.120.0170.06316.52
5.4.110.0030.07316.47
5.4.100.0070.06716.52
5.4.90.0030.06316.53
5.4.80.0100.05016.37
5.4.70.0100.06716.69
5.4.60.0030.05316.39
5.4.50.0070.05316.39
5.4.40.0200.04016.65
5.4.30.0130.06016.30
5.4.20.0170.04016.62
5.4.10.0070.05316.36
5.4.00.0100.06016.03
5.3.290.0070.03712.80
5.3.280.0130.05714.68
5.3.270.0100.05014.44
5.3.260.0030.07014.67
5.3.250.0200.04014.69
5.3.240.0070.08014.77
5.3.230.0070.05314.68
5.3.220.0130.06314.74
5.3.210.0100.07714.70
5.3.200.0200.05014.58
5.3.190.0100.07014.75
5.3.180.0100.06714.79
5.3.170.0070.07014.74
5.3.160.0030.05314.65
5.3.150.0100.05314.63
5.3.140.0070.06714.64
5.3.130.0130.04714.38
5.3.120.0070.05314.65
5.3.110.0070.08014.64
5.3.100.0100.05014.05
5.3.90.0170.05014.02
5.3.80.0170.06014.08
5.3.70.0000.07714.03
5.3.60.0000.07013.98
5.3.50.0200.04313.97
5.3.40.0130.04713.93
5.3.30.0000.05713.91
5.3.20.0030.05313.70
5.3.10.0070.05713.57
5.3.00.0030.05313.64
5.2.170.0000.04711.06
5.2.160.0070.05311.25
5.2.150.0100.03711.24
5.2.140.0030.06311.23
5.2.130.0100.03711.09
5.2.120.0030.04311.20
5.2.110.0100.04711.05
5.2.100.0030.05711.32
5.2.90.0200.04311.08
5.2.80.0030.05711.16
5.2.70.0100.06010.92
5.2.60.0070.04311.13
5.2.50.0100.05311.01
5.2.40.0100.04311.07
5.2.30.0070.06011.05
5.2.20.0000.04711.12
5.2.10.0070.03710.93
5.2.00.0030.04310.72
5.1.60.0030.04310.07
5.1.50.0100.02710.00
5.1.40.0000.03710.05
5.1.30.0100.03310.34
5.1.20.0200.03710.19
5.1.10.0100.0409.91
5.1.00.0100.04710.14
5.0.50.0030.0438.60
5.0.40.0030.0378.56
5.0.30.0030.0608.56
5.0.20.0030.0278.56
5.0.10.0030.0278.56
5.0.00.0130.0438.56
4.4.90.0070.0178.56
4.4.80.0070.0208.56
4.4.70.0000.0278.56
4.4.60.0000.0238.56
4.4.50.0070.0278.56
4.4.40.0070.0478.56
4.4.30.0070.0178.56
4.4.20.0070.0178.56
4.4.10.0000.0278.56
4.4.00.0030.0338.56
4.3.110.0100.0278.56
4.3.100.0070.0278.56
4.3.90.0070.0178.56
4.3.80.0070.0338.56
4.3.70.0030.0278.56
4.3.60.0000.0238.56
4.3.50.0070.0238.56
4.3.40.0000.0378.56
4.3.30.0000.0308.56
4.3.20.0000.0238.56
4.3.10.0000.0238.56
4.3.00.0030.0207.80

preferences:
42.76 ms | 401 KiB | 5 Q