3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __construct() { self::setA(); } function setA() { echo "class a"; } } class B extends A { function __construct() { parent::__construct(); } 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.0090.01318.30
8.3.50.0110.00722.08
8.3.40.0120.00318.59
8.3.30.0070.00718.91
8.3.20.0000.00820.09
8.3.10.0090.00622.11
8.3.00.0040.00422.40
8.2.180.0120.00616.48
8.2.170.0130.01022.96
8.2.160.0070.00720.95
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0000.01121.03
8.2.100.0120.00017.78
8.2.90.0080.00019.17
8.2.80.0030.00617.97
8.2.70.0000.00817.48
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0060.00320.44
8.2.30.0030.00517.91
8.2.20.0000.00817.59
8.2.10.0040.00417.46
8.2.00.0070.00017.42
8.1.280.0140.00325.92
8.1.270.0040.00421.92
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00321.22
8.1.230.0080.00417.42
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0050.00517.10
8.1.190.0030.00517.13
8.1.180.0040.00418.10
8.1.170.0030.00618.41
8.1.160.0040.00418.72
8.1.150.0000.00718.41
8.1.140.0080.00017.38
8.1.130.0040.00417.71
8.1.120.0050.00217.20
8.1.110.0080.00017.33
8.1.100.0040.00417.36
8.1.90.0000.00817.27
8.1.80.0070.00017.29
8.1.70.0030.00317.30
8.1.60.0030.00617.50
8.1.50.0000.00817.35
8.1.40.0030.00617.39
8.1.30.0030.00517.50
8.1.20.0040.00417.54
8.1.10.0000.00817.52
8.1.00.0030.00517.37
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0040.00417.26
8.0.260.0040.00416.86
8.0.250.0000.00716.90
8.0.240.0000.00916.93
8.0.230.0080.00016.89
8.0.220.0070.00016.86
8.0.210.0070.00016.75
8.0.200.0020.00516.74
8.0.190.0070.00016.85
8.0.180.0030.00316.78
8.0.170.0040.00416.78
8.0.160.0030.00516.74
8.0.150.0000.00816.68
8.0.140.0070.00016.69
8.0.130.0030.00313.34
8.0.120.0040.00416.68
8.0.110.0000.00716.79
8.0.100.0080.00016.89
8.0.90.0050.00216.62
8.0.80.0090.01316.67
8.0.70.0000.00716.66
8.0.60.0040.00416.70
8.0.50.0040.00416.75
8.0.30.0110.00817.09
8.0.20.0080.01117.40
8.0.10.0070.00016.68
8.0.00.0090.01216.59
7.4.330.0060.00015.00
7.4.320.0070.00016.43
7.4.300.0060.00016.52
7.4.290.0080.00016.57
7.4.280.0030.00316.48
7.4.270.0030.00316.64
7.4.260.0030.00316.46
7.4.250.0080.00016.54
7.4.240.0000.00716.54
7.4.230.0030.00316.54
7.4.220.0070.01116.46
7.4.210.0100.00816.47
7.4.200.0030.00416.35
7.4.190.0000.00716.61
7.4.160.0100.00516.53
7.4.150.0130.00417.40
7.4.140.0140.00317.86
7.4.130.0050.01116.55
7.4.120.0120.00516.38
7.4.110.0130.00316.48
7.4.100.0040.01416.51
7.4.90.0140.00416.45
7.4.80.0060.01019.39
7.4.70.0030.01416.48
7.4.60.0070.01716.55
7.4.50.0020.00216.46
7.4.40.0060.00922.77
7.4.30.0130.00616.39
7.4.00.0030.01015.01
7.3.330.0000.00513.25
7.3.320.0030.00313.18
7.3.310.0000.00716.13
7.3.300.0030.00316.24
7.3.290.0060.01216.21
7.3.280.0080.01016.22
7.3.270.0080.00817.40
7.3.260.0120.00616.30
7.3.250.0130.00716.44
7.3.240.0120.00616.39
7.3.230.0120.00916.39
7.3.210.0030.01316.23
7.3.200.0180.00519.39
7.3.190.0030.01716.27
7.3.180.0150.00616.14
7.3.170.0100.00716.27
7.3.160.0040.01116.13
7.3.120.0030.01214.53
7.2.330.0100.00716.24
7.2.320.0070.01016.63
7.2.310.0110.00616.28
7.2.300.0070.01016.74
7.2.290.0120.00316.55
7.2.00.0030.01019.28
7.1.100.0150.00917.84
7.1.70.0100.00317.15
7.1.60.0070.01819.82
7.1.50.0070.01716.77
7.1.00.0070.07322.54
7.0.200.0060.00916.41
7.0.140.0030.07322.13
7.0.60.0130.07719.81
7.0.50.0070.07317.81
7.0.40.0130.07320.14
7.0.30.0300.03720.22
7.0.20.0200.04020.22
7.0.10.0100.07720.15
7.0.00.0100.06720.30
5.6.280.0030.07020.79
5.6.210.0070.07720.55
5.6.200.0000.05718.14
5.6.190.0100.08020.61
5.6.180.0170.03720.50
5.6.170.0230.05020.54
5.6.160.0130.05320.61
5.6.150.0100.04318.22
5.6.140.0070.05018.27
5.6.130.0030.08018.19
5.6.120.0030.05721.13
5.6.110.0100.08321.14
5.6.100.0100.07720.86
5.6.90.0070.08721.11
5.6.80.0070.07720.43
5.5.350.0030.08320.53
5.5.340.0100.03317.98
5.5.330.0100.08020.47
5.5.320.0230.08020.24
5.5.310.0200.03720.42
5.5.300.0030.08317.97
5.5.290.0100.07017.98
5.5.280.0000.06320.68
5.5.270.0000.08320.79
5.5.260.0070.04320.77
5.5.250.0030.09020.72
5.5.240.0370.06720.04
5.4.450.0230.05019.34
5.4.440.0070.06019.16
5.4.430.0770.06019.59
5.4.420.0200.04319.32
5.4.410.0630.06019.05
5.4.400.0870.05019.11
5.4.390.0770.05719.32
5.4.380.0200.06318.85
5.4.370.0370.05018.78
5.4.360.0330.05018.75
5.4.350.0370.04718.57
5.4.340.0330.07018.47
5.4.320.0040.03812.50
5.4.310.0070.03612.50
5.4.300.0080.04312.50
5.4.290.0070.03812.50
5.4.280.0070.03512.40
5.4.270.0080.03812.40
5.4.260.0100.06319.03
5.4.250.0130.04718.98
5.4.240.0030.08318.77
5.4.230.0170.07018.95
5.4.220.0100.06018.82
5.4.210.0130.06718.77
5.4.200.0030.06018.89
5.4.190.0030.06719.00
5.4.180.0100.05019.00
5.4.170.0100.05318.89
5.4.160.0130.07319.01
5.4.150.0070.07718.82
5.4.140.0130.04716.41
5.4.130.0170.06716.55
5.4.120.0030.06716.39
5.4.110.0000.06016.61
5.4.100.0100.06316.55
5.4.90.0130.06316.57
5.4.80.0100.07016.55
5.4.70.0200.04316.66
5.4.60.0200.06016.46
5.4.50.0030.05316.54
5.4.40.0030.07316.54
5.4.30.0070.05016.54
5.4.20.0030.07016.50
5.4.10.0100.07316.30
5.4.00.0070.06715.82
5.3.290.0060.04012.80
5.3.280.0100.06014.43
5.3.270.0200.06714.44
5.3.260.0070.05314.63
5.3.250.0130.06314.51
5.3.240.0130.06314.59
5.3.230.0130.07014.71
5.3.220.0070.06014.39
5.3.210.0030.05714.66
5.3.200.0170.04314.66
5.3.190.0130.05014.47
5.3.180.0000.08014.70
5.3.170.0000.06314.55
5.3.160.0030.05714.64
5.3.150.0130.05014.47
5.3.140.0100.05014.73
5.3.130.0170.05014.38
5.3.120.0130.07014.71
5.3.110.0100.06314.71
5.3.100.0070.05314.10
5.3.90.0070.07313.92
5.3.80.0170.05314.04
5.3.70.0070.05713.99
5.3.60.0070.05014.00
5.3.50.0000.05313.86
5.3.40.0130.04314.04
5.3.30.0100.05013.93
5.3.20.0100.04313.77
5.3.10.0070.04713.83
5.3.00.0170.04013.72
5.2.170.0030.06311.38
5.2.160.0070.05711.14
5.2.150.0100.05711.23
5.2.140.0070.04011.05
5.2.130.0100.05311.33
5.2.120.0070.04011.18
5.2.110.0000.04311.29
5.2.100.0100.04011.16
5.2.90.0100.04011.19
5.2.80.0130.03311.17
5.2.70.0030.06011.08
5.2.60.0070.05710.96
5.2.50.0170.03311.02
5.2.40.0000.04710.84
5.2.30.0070.04711.04
5.2.20.0070.05311.14
5.2.10.0130.04710.95
5.2.00.0030.06010.95
5.1.60.0100.04310.07
5.1.50.0100.0379.98
5.1.40.0070.03310.05
5.1.30.0070.04710.41
5.1.20.0070.05010.35
5.1.10.0100.03310.22
5.1.00.0130.04310.16
5.0.50.0100.0208.56
5.0.40.0030.0278.56
5.0.30.0070.0378.56
5.0.20.0000.0308.56
5.0.10.0000.0438.56
5.0.00.0100.0438.56
4.4.90.0000.0338.56
4.4.80.0000.0278.56
4.4.70.0030.0278.56
4.4.60.0070.0278.56
4.4.50.0100.0238.56
4.4.40.0000.0378.56
4.4.30.0030.0278.56
4.4.20.0030.0338.56
4.4.10.0000.0338.56
4.4.00.0000.0378.56
4.3.110.0000.0238.56
4.3.100.0030.0308.56
4.3.90.0070.0238.56
4.3.80.0000.0378.56
4.3.70.0000.0278.56
4.3.60.0000.0278.56
4.3.50.0070.0178.56
4.3.40.0000.0338.56
4.3.30.0070.0208.56
4.3.20.0070.0278.56
4.3.10.0070.0278.56
4.3.00.0030.0208.11

preferences:
50.28 ms | 401 KiB | 5 Q