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 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.0120.00318.56
8.3.50.0120.00321.92
8.3.40.0120.00918.72
8.3.30.0160.00619.01
8.3.20.0070.00020.04
8.3.10.0030.00521.95
8.3.00.0040.00422.52
8.2.180.0060.00918.18
8.2.170.0140.00022.96
8.2.160.0070.00720.80
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.01426.16
8.2.120.0040.00417.49
8.2.110.0070.00322.11
8.2.100.0070.00317.91
8.2.90.0080.00019.27
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0060.00317.91
8.2.50.0040.00418.07
8.2.40.0050.00318.03
8.2.30.0000.00817.97
8.2.20.0020.00517.52
8.2.10.0000.00817.50
8.2.00.0040.00417.59
8.1.280.0140.00025.92
8.1.270.0060.00322.19
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00320.87
8.1.230.0040.00717.42
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.10
8.1.190.0040.00417.27
8.1.180.0040.00418.60
8.1.170.0060.00318.50
8.1.160.0000.00721.78
8.1.150.0000.00718.50
8.1.140.0000.00717.38
8.1.130.0020.00517.61
8.1.120.0000.00717.35
8.1.110.0060.00317.21
8.1.100.0030.00317.29
8.1.90.0000.00717.23
8.1.80.0040.00417.23
8.1.70.0030.00317.34
8.1.60.0030.00617.55
8.1.50.0000.00817.34
8.1.40.0040.00417.45
8.1.30.0060.00317.57
8.1.20.0000.00817.63
8.1.10.0000.00717.51
8.1.00.0050.00217.51
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.34
8.0.270.0030.00317.25
8.0.260.0030.00316.73
8.0.250.0000.00716.87
8.0.240.0060.00316.90
8.0.230.0030.00316.81
8.0.220.0000.00716.71
8.0.210.0070.00016.73
8.0.200.0080.00016.89
8.0.190.0040.00416.89
8.0.180.0030.00316.75
8.0.170.0000.00716.85
8.0.160.0000.00916.76
8.0.150.0000.00716.76
8.0.140.0070.00016.82
8.0.130.0060.00013.21
8.0.120.0030.00616.69
8.0.110.0000.00716.82
8.0.100.0000.00816.81
8.0.90.0020.00516.63
8.0.80.0100.01016.77
8.0.70.0000.00716.80
8.0.60.0030.00316.63
8.0.50.0040.00416.72
8.0.30.0120.00717.01
8.0.20.0080.01017.40
8.0.10.0050.00316.71
8.0.00.0100.00716.56
7.4.330.0020.00215.00
7.4.320.0030.00316.55
7.4.300.0000.00616.63
7.4.290.0000.00816.63
7.4.280.0020.00516.54
7.4.270.0000.00716.48
7.4.260.0070.00016.57
7.4.250.0000.00816.50
7.4.240.0040.00416.48
7.4.230.0000.00716.62
7.4.220.0070.01116.46
7.4.210.0080.00816.53
7.4.200.0030.00316.43
7.4.190.0040.00416.34
7.4.160.0060.01616.28
7.4.150.0100.00717.40
7.4.140.0130.00617.86
7.4.130.0080.01016.44
7.4.120.0110.00616.59
7.4.110.0120.00416.45
7.4.100.0100.00716.41
7.4.90.0070.01016.51
7.4.80.0100.00719.39
7.4.70.0030.01416.55
7.4.60.0110.00816.58
7.4.50.0060.00316.48
7.4.40.0030.01022.77
7.4.30.0100.00716.43
7.4.00.0070.01015.24
7.3.330.0020.00213.21
7.3.320.0050.00013.22
7.3.310.0040.00416.02
7.3.300.0000.00716.12
7.3.290.0000.01616.16
7.3.280.0100.00916.21
7.3.270.0100.00717.40
7.3.260.0070.01716.46
7.3.250.0110.00916.46
7.3.240.0100.01216.20
7.3.230.0060.01316.46
7.3.210.0110.01416.44
7.3.200.0090.00919.39
7.3.190.0130.00616.31
7.3.180.0090.01216.29
7.3.170.0110.00616.37
7.3.160.0090.00616.43
7.3.120.0030.01014.70
7.3.10.0070.00416.50
7.3.00.0070.00716.56
7.2.330.0090.00816.25
7.2.320.0100.01016.53
7.2.310.0190.00416.69
7.2.300.0120.00416.55
7.2.290.0130.00616.26
7.2.130.0040.00816.66
7.2.120.0000.01416.60
7.2.110.0100.00316.84
7.2.100.0030.00616.85
7.2.90.0090.00916.60
7.2.80.0070.00716.99
7.2.70.0110.00416.71
7.2.60.0070.00716.79
7.2.50.0030.00716.97
7.2.40.0030.00916.96
7.2.30.0030.00916.96
7.2.20.0040.00816.68
7.2.10.0140.00016.85
7.2.00.0060.00817.88
7.1.250.0080.00815.58
7.1.70.0040.00717.02
7.1.60.0030.00717.09
7.1.50.0110.01116.66
7.1.00.0030.07322.57
7.0.200.0140.00816.84
7.0.140.0000.07322.00
7.0.60.0170.04319.91
7.0.50.0030.04017.89
7.0.40.0070.04020.18
7.0.30.0170.04320.30
7.0.20.0170.08320.09
7.0.10.0270.07020.15
7.0.00.0170.08020.20
5.6.280.0100.06321.04
5.6.210.0100.05020.61
5.6.200.0100.03718.29
5.6.190.0130.07020.51
5.6.180.3630.04720.52
5.6.170.0300.04720.58
5.6.160.0100.05020.59
5.6.150.0100.08018.28
5.6.140.0100.08018.21
5.6.130.0000.04718.15
5.6.120.0130.07720.90
5.6.110.0100.08021.00
5.6.100.0030.04321.00
5.6.90.0070.04020.98
5.6.80.0130.07720.36
5.5.350.0000.04020.45
5.5.340.0030.07318.02
5.5.330.0100.03320.57
5.5.320.0270.06720.34
5.5.310.0270.04020.25
5.5.300.0100.08017.95
5.5.290.0070.04317.97
5.5.280.0070.08720.95
5.5.270.0000.04720.87
5.5.260.0100.08020.96
5.5.250.0030.08020.66
5.5.240.0030.03720.27
5.4.450.0470.05719.62
5.4.440.0330.06019.38
5.4.430.0030.06019.46
5.4.420.0100.05319.53
5.4.410.0230.04319.45
5.4.400.0770.00018.84
5.4.390.0830.00018.73
5.4.380.0230.05318.78
5.4.370.0170.06318.74
5.4.360.0200.05718.60
5.4.350.0270.05318.75
5.4.340.0170.06018.52
5.4.320.0070.03512.51
5.4.310.0070.03612.50
5.4.300.0030.04112.50
5.4.290.0070.03712.50
5.4.280.0030.03712.40
5.4.270.0040.04212.40
5.4.260.0070.07018.89
5.4.250.0170.06319.03
5.4.240.0070.05718.73
5.4.230.0100.05018.69
5.4.220.0030.07718.71
5.4.210.0270.06718.85
5.4.200.0130.04718.86
5.4.190.0170.06019.02
5.4.180.0130.05019.02
5.4.170.0100.06718.74
5.4.160.0130.06718.59
5.4.150.0030.08018.93
5.4.140.0130.06716.45
5.4.130.0230.05716.44
5.4.120.0070.07016.63
5.4.110.0030.08016.48
5.4.100.0070.05016.51
5.4.90.0100.07016.49
5.4.80.0100.04316.63
5.4.70.0130.05716.50
5.4.60.0100.06316.41
5.4.50.0000.07016.56
5.4.40.0000.06016.48
5.4.30.0130.04016.41
5.4.20.0130.04716.25
5.4.10.0130.06016.39
5.4.00.0000.05715.85
5.3.290.0060.04312.80
5.3.280.0100.06314.73
5.3.270.0170.05714.69
5.3.260.0100.08014.61
5.3.250.0170.06014.59
5.3.240.0070.07014.69
5.3.230.0070.07314.50
5.3.220.0130.06714.54
5.3.210.0070.05314.63
5.3.200.0000.05714.66
5.3.190.0030.06314.63
5.3.180.0230.05314.61
5.3.170.0100.06014.67
5.3.160.0130.05314.64
5.3.150.0000.05714.58
5.3.140.0170.05314.63
5.3.130.0100.06314.45
5.3.120.0030.05714.57
5.3.110.0070.07314.71
5.3.100.0070.06313.94
5.3.90.0070.07014.18
5.3.80.0070.05014.08
5.3.70.0030.05014.25
5.3.60.0070.07013.98
5.3.50.0100.04713.79
5.3.40.0070.06313.95
5.3.30.0070.05313.98
5.3.20.0130.05713.53
5.3.10.0030.05013.70
5.3.00.0100.04713.74
5.2.170.0000.06311.23
5.2.160.0030.04710.98
5.2.150.0000.04711.31
5.2.140.0070.04011.15
5.2.130.0030.05311.19
5.2.120.0030.04311.09
5.2.110.0070.04711.01
5.2.100.0070.03711.32
5.2.90.0000.06011.26
5.2.80.0000.04311.05
5.2.70.0130.03711.25
5.2.60.0000.06310.96
5.2.50.0070.05011.10
5.2.40.0030.04011.22
5.2.30.0070.04010.95
5.2.20.0130.03310.94
5.2.10.0070.05011.08
5.2.00.0030.04010.55
5.1.60.0030.0339.98
5.1.50.0000.0509.99
5.1.40.0170.0379.99
5.1.30.0070.03710.43
5.1.20.0100.03010.44
5.1.10.0100.0409.91
5.1.00.0070.03310.11
5.0.50.0030.0378.78
5.0.40.0030.0378.56
5.0.30.0030.0478.56
5.0.20.0030.0308.56
5.0.10.0100.0278.56
5.0.00.0030.0578.56
4.4.90.0000.0278.56
4.4.80.0030.0238.56
4.4.70.0070.0278.56
4.4.60.0030.0278.56
4.4.50.0100.0178.56
4.4.40.0030.0338.56
4.4.30.0000.0238.56
4.4.20.0000.0308.56
4.4.10.0070.0178.56
4.4.00.0030.0338.56
4.3.110.0030.0278.56
4.3.100.0030.0208.56
4.3.90.0000.0278.56
4.3.80.0070.0308.56
4.3.70.0030.0238.56
4.3.60.0030.0208.56
4.3.50.0030.0208.56
4.3.40.0070.0278.56
4.3.30.0000.0338.56
4.3.20.0030.0208.56
4.3.10.0000.0238.56
4.3.00.0070.0237.80

preferences:
45.36 ms | 401 KiB | 5 Q