3v4l.org

run code in 300+ PHP versions simultaneously
<? class A{ public funcrtion __construct(){ echo 'world'; } } class B extends A{ public function __construct(){ echp 'b'; } } $c = 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.0040.01118.18
8.3.50.0040.01119.51
8.3.40.0070.00718.62
8.3.30.0110.00418.51
8.3.20.0080.00021.61
8.3.10.0060.00323.69
8.3.00.0000.00919.85
8.2.180.0120.00918.16
8.2.170.0080.00822.96
8.2.160.0110.00421.05
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0000.00722.08
8.2.120.0000.00726.35
8.2.110.0070.00421.01
8.2.100.0060.00617.44
8.2.90.0060.00317.84
8.2.80.0030.00618.96
8.2.70.0030.00617.50
8.2.60.0050.00317.80
8.2.50.0050.00317.98
8.2.40.0040.00417.62
8.2.30.0030.00517.86
8.2.20.0050.00217.52
8.2.10.0000.00717.83
8.2.00.0080.00017.79
8.1.280.0140.00725.92
8.1.270.0000.00723.82
8.1.260.0050.00328.09
8.1.250.0050.00228.09
8.1.240.0030.00622.02
8.1.230.0040.00720.97
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00517.22
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0000.00718.89
8.1.150.0040.00422.55
8.1.140.0050.00319.39
8.1.130.0030.00317.47
8.1.120.0100.00017.29
8.1.110.0000.00717.20
8.1.100.0030.00517.24
8.1.90.0000.00717.35
8.1.80.0070.00017.31
8.1.70.0030.00317.34
8.1.60.0000.00717.34
8.1.50.0000.00817.33
8.1.40.0030.00517.42
8.1.30.0040.00417.50
8.1.20.0080.00017.53
8.1.10.0000.00717.45
8.1.00.0050.00217.22
8.0.300.0070.00019.75
8.0.290.0000.00716.63
8.0.280.0030.00318.59
8.0.270.0030.00717.09
8.0.260.0000.00617.10
8.0.250.0030.00316.71
8.0.240.0040.00416.77
8.0.230.0000.00616.78
8.0.220.0040.00416.63
8.0.210.0030.00516.72
8.0.200.0000.00716.82
8.0.190.0040.00416.70
8.0.180.0050.00316.68
8.0.170.0080.00016.83
8.0.160.0000.00716.77
8.0.150.0070.00016.76
8.0.140.0030.00316.71
8.0.130.0000.00613.47
8.0.120.0040.00416.76
8.0.110.0040.00416.58
8.0.100.0040.00416.61
8.0.90.0050.00316.76
8.0.80.0050.01016.70
8.0.70.0040.00316.57
8.0.60.0000.00716.77
8.0.50.0040.00416.68
8.0.30.0100.01016.86
8.0.20.0110.00917.40
8.0.10.0070.00016.81
8.0.00.0130.01016.68
7.4.330.0000.00515.08
7.4.320.0000.00616.50
7.4.300.0060.00016.47
7.4.290.0000.00716.35
7.4.280.0030.00616.46
7.4.270.0030.00316.36
7.4.260.0000.00616.47
7.4.250.0000.00716.33
7.4.240.0070.00016.37
7.4.230.0000.00716.35
7.4.220.0100.01016.39
7.4.210.0200.01016.32
7.4.200.0000.00816.39
7.4.160.0070.01116.36
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0080.00816.49
7.4.120.0080.00916.39
7.4.110.0060.01616.51
7.4.100.0130.00316.47
7.4.90.0100.00716.43
7.4.80.0070.01019.39
7.4.70.0090.01516.41
7.4.60.0130.00316.41
7.4.50.0090.00316.16
7.4.40.0100.00716.36
7.4.30.0090.01416.53
7.3.330.0000.00613.15
7.3.320.0030.00313.11
7.3.310.0050.00215.98
7.3.300.0030.00315.97
7.3.290.0070.00616.14
7.3.280.0110.00816.12
7.3.270.0100.00717.40
7.3.260.0090.00916.19
7.3.250.0130.00416.21
7.3.240.0090.00916.21
7.3.230.0100.00616.39
7.3.210.0030.01416.29
7.3.200.0130.00716.22
7.3.190.0160.00616.17
7.3.180.0060.01216.44
7.3.170.0070.01416.44
7.3.160.0100.00616.06
7.2.330.0100.00716.36
7.2.320.0060.00916.34
7.2.310.0030.01216.24
7.2.300.0080.00916.32
7.2.290.0090.00916.32
7.0.90.0770.00019.87
7.0.80.0730.00019.92
7.0.70.1000.00019.96
7.0.60.0900.00019.95
7.0.50.0830.00020.43
7.0.40.1070.00020.29
7.0.30.0830.00020.19
7.0.20.0870.00020.34
7.0.10.0830.00020.28
7.0.00.0830.00020.33
5.6.240.0800.00020.63
5.6.230.0730.00020.66
5.6.220.0930.00020.61
5.6.210.0970.00020.68
5.6.200.0770.00021.08
5.6.190.0970.00021.02
5.6.180.0800.00021.02
5.6.170.0800.00021.10
5.6.160.0800.00021.02
5.6.150.0800.00021.08
5.6.140.1070.00021.09
5.6.130.0730.00021.07
5.6.120.0930.00021.05
5.6.110.0870.00021.06
5.6.100.1000.00021.12
5.6.90.1000.00021.06
5.6.80.0800.00020.49
5.6.70.0730.00020.48
5.6.60.0800.00020.43
5.6.50.0730.00020.55
5.6.40.0870.00020.45
5.6.30.0900.00020.39
5.6.20.0870.00020.49
5.6.10.0800.00020.52
5.6.00.0870.00020.36

preferences:
59.73 ms | 401 KiB | 5 Q