3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PDO1 {}; class PdoLm extends PDO1 {}; function getPDO(): PDO1 { return new PdoLm (); } var_export(getPDO());

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.70.0120.00918.43
8.3.60.0110.00718.18
8.3.50.0140.00720.35
8.3.40.0030.01018.72
8.3.30.0030.01018.85
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.190.0070.00716.58
8.2.180.0140.00016.50
8.2.170.0070.00718.96
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0040.00421.10
8.2.110.0040.00420.53
8.2.100.0040.00817.66
8.2.90.0040.00417.50
8.2.80.0060.00318.75
8.2.70.0040.00417.50
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0000.00919.84
8.2.30.0080.00417.91
8.2.20.0000.00720.47
8.2.10.0030.00517.80
8.2.00.0040.00418.98
8.1.280.0040.01125.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.78
8.1.230.0080.00323.98
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0030.00617.23
8.1.190.0080.00018.89
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00718.80
8.1.150.0050.00218.50
8.1.140.0070.00017.19
8.1.130.0000.00717.32
8.1.120.0000.00717.27
8.1.110.0060.00317.35
8.1.100.0040.00317.32
8.1.90.0070.00017.25
8.1.80.0040.00417.20
8.1.70.0040.00417.32
8.1.60.0010.00717.51
8.1.50.0080.01217.35
8.1.40.0200.00017.32
8.1.30.0170.00017.48
8.1.20.0190.00017.36
8.1.10.0090.00917.35
8.1.00.0120.00417.17
8.0.300.0080.00018.77
8.0.290.0000.00716.58
8.0.280.0000.00718.25
8.0.270.0060.00317.81
8.0.260.0030.00516.63
8.0.250.0070.00016.75
8.0.240.0040.00416.88
8.0.230.0070.00016.86
8.0.220.0050.00216.78
8.0.210.0000.00716.71
8.0.200.0000.00616.75
8.0.190.0030.00316.75
8.0.180.0100.00516.71
8.0.170.0120.00416.80
8.0.160.0090.00916.72
8.0.150.0100.00716.69
8.0.140.0120.00316.64
8.0.130.0110.00416.79
8.0.120.0150.00016.77
8.0.110.0110.00416.75
8.0.100.0040.01116.78
8.0.90.0060.00816.75
8.0.80.0150.00016.68
8.0.70.0100.00716.80
8.0.60.0130.00016.64
8.0.50.0120.00416.71
8.0.30.0120.00316.71
8.0.20.0050.01016.80
8.0.10.0070.00816.92
7.4.330.0000.00515.55
7.4.320.0060.00016.36
7.4.300.0000.00616.55
7.4.290.0050.01116.35
7.4.280.0120.00416.52
7.4.270.0140.00416.47
7.4.260.0050.01016.51
7.4.250.0090.00916.27
7.4.240.0140.00316.40
7.4.230.0140.00516.41
7.4.220.0140.00016.55
7.4.210.0040.00916.46
7.4.200.0130.00116.33
7.4.190.0060.00916.47
7.4.180.0100.00316.39
7.4.160.0130.00016.55
7.4.150.0130.00016.46
7.4.140.0110.00416.42
7.4.130.0050.01016.37
7.4.120.0120.00316.16
7.4.110.0090.00316.27
7.4.100.0140.00016.42
7.4.90.0100.00316.37
7.4.80.0110.00416.29
7.4.70.0030.01016.42
7.4.60.0080.00516.29
7.4.50.0070.00716.12
7.4.40.0100.00416.18
7.4.30.0110.00416.31
7.4.20.0090.00516.15
7.4.10.0100.00316.12
7.4.00.0070.00716.38

preferences:
51.7 ms | 401 KiB | 5 Q