3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { private function __construct() {} static public function get() { return new static(); } } class Y extends X { final public function __construct() {} } new Y();

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.0080.00818.18
8.3.50.0170.00221.98
8.3.40.0100.00718.64
8.3.30.0120.00918.43
8.3.20.0040.00420.04
8.3.10.0030.00620.22
8.3.00.0060.00323.53
8.2.180.0040.01117.88
8.2.170.0040.01122.96
8.2.160.0070.00719.28
8.2.150.0000.01024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00321.04
8.2.110.0030.00721.04
8.2.100.0040.00817.90
8.2.90.0030.00519.00
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0040.00417.68
8.2.50.0000.00818.09
8.2.40.0040.00420.52
8.2.30.0080.00019.28
8.2.20.0000.00717.49
8.2.10.0040.00417.97
8.2.00.0060.00317.95
8.1.280.0000.01425.92
8.1.270.0070.00723.83
8.1.260.0060.00326.35
8.1.250.0120.00328.09
8.1.240.0000.01022.34
8.1.230.0090.00317.71
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0100.00017.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00918.52
8.1.160.0050.00320.68
8.1.150.0030.00520.41
8.1.140.0040.00419.31
8.1.130.0000.00717.44
8.1.120.0070.00017.27
8.1.110.0040.00417.31
8.1.100.0000.00717.23
8.1.90.0080.00017.22
8.1.80.0060.00317.21
8.1.70.0080.00017.25
8.1.60.0000.00817.50
8.1.50.0080.00017.38
8.1.40.0030.00517.32
8.1.30.0030.00517.50
8.1.20.0050.00317.41
8.1.10.0050.00317.46
8.1.00.0070.00017.42
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0040.00417.09
8.0.260.0070.00017.21
8.0.250.0070.00016.88
8.0.240.0040.00416.78
8.0.230.0030.00516.73
8.0.220.0070.00016.72
8.0.210.0070.00016.66
8.0.200.0040.00416.84
8.0.190.0060.00316.71
8.0.180.0000.00816.79
8.0.170.0050.00316.72
8.0.160.0070.00016.73
8.0.150.0030.00316.70
8.0.140.0000.00716.62
8.0.130.0090.00013.20
8.0.120.0000.00816.73
8.0.110.0040.00416.76
8.0.100.0000.00816.82
8.0.90.0020.00516.75
8.0.80.0040.01116.82
8.0.70.0000.00816.77
8.0.60.0070.00016.65
8.0.50.0080.00016.79
8.0.30.0100.00817.01
8.0.20.0070.01117.40
8.0.10.0030.00516.89
8.0.00.0100.00916.71
7.4.330.0000.00516.69
7.4.320.0070.00016.36
7.4.300.0030.00316.52
7.4.290.0000.00816.41
7.4.280.0000.00816.51
7.4.270.0030.00316.38
7.4.260.0040.00416.31
7.4.250.0040.00416.42
7.4.240.0000.00816.52
7.4.230.0070.00016.22
7.4.220.0140.00416.41
7.4.210.0090.00916.44
7.4.200.0020.00516.31
7.4.160.0120.00316.46
7.4.150.0120.00617.40
7.4.140.0070.01217.86
7.4.130.0090.01016.38
7.4.120.0080.00816.44
7.4.110.0120.00916.33
7.4.100.0100.00716.58
7.4.90.0130.00316.23
7.4.80.0160.00019.39
7.4.70.0120.00316.53
7.4.60.0120.00616.31
7.4.50.0070.01116.29
7.4.40.0100.00716.29
7.4.30.0090.00916.41
7.4.00.0060.00914.95
7.3.330.0030.00312.95
7.3.320.0030.00313.04
7.3.310.0050.00216.06
7.3.300.0040.00416.16
7.3.290.0080.00816.22
7.3.280.0050.01116.23
7.3.270.0150.00317.40
7.3.260.0100.01316.49
7.3.250.0110.00916.29
7.3.240.0090.00916.24
7.3.230.0030.01716.39
7.3.210.0070.01016.33
7.3.200.0120.00416.39
7.3.190.0060.01216.30
7.3.180.0090.00616.10
7.3.170.0130.00716.36
7.3.160.0110.00616.31
7.3.10.0180.00016.14
7.3.00.0180.00916.00
7.2.330.0040.01416.51
7.2.320.0140.00316.60
7.2.310.0060.01016.54
7.2.300.0120.00416.38
7.2.290.0030.01316.40
7.2.130.0110.00716.32
7.2.120.0080.01516.72
7.2.110.0210.00616.66
7.2.100.0130.00915.81
7.2.90.0110.00616.39
7.2.80.0210.00316.38
7.2.70.0210.00616.45
7.2.60.0080.01216.52
7.2.50.0150.00516.74
7.2.40.0150.00416.68
7.2.30.0160.00016.28
7.2.20.0110.00316.32
7.2.10.0060.00916.51
7.2.00.0060.00918.13
7.1.250.0100.01015.23
7.1.200.0030.00615.39
7.1.100.0000.01518.16
7.1.70.0270.00416.93
7.1.60.0070.01119.19
7.1.50.0040.00716.52
7.1.00.0070.07322.54
7.0.200.0100.00314.51
7.0.60.0200.06021.61
7.0.50.0030.07317.87
7.0.40.0130.07320.05
7.0.30.0430.06020.08
7.0.20.0130.04320.33
7.0.10.0130.07020.18
7.0.00.0030.08720.09
5.6.280.0000.03721.08
5.6.210.0030.04320.45
5.6.200.0100.04718.25
5.6.190.0130.08020.39
5.6.180.0400.07020.50
5.6.170.0200.05020.51
5.6.160.0130.04020.54
5.6.150.0030.04018.23
5.6.140.0130.08018.18
5.6.130.0070.03718.16
5.6.120.0130.07721.13
5.6.110.0130.07321.09
5.6.100.0130.07721.13
5.6.90.0000.07020.99
5.6.80.0100.07020.51
5.5.350.0230.06020.53
5.5.340.0000.07017.95
5.5.330.0170.06020.21
5.5.320.0570.05320.25
5.5.310.0300.07320.30
5.5.300.0100.03317.93
5.5.290.0170.05718.07
5.5.280.0070.04020.88
5.5.270.0030.04020.79
5.5.260.0000.07320.84
5.5.250.0170.04720.55
5.5.240.0030.07020.29

preferences:
52.99 ms | 401 KiB | 5 Q