3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PDOx extends PDO { public function query(...$args) { if (count($args) !== 2) { return parent::query(...$args); } if (is_object($args[1])) { $args[1] = (array)$args[1]; } if (!is_array($args[1])) { return parent::query($args[0], $args[1]); } $stmt = self::prepare($args[0]); $stmt->execute($args[1]); return $stmt; } }

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.0110.00418.55
8.3.50.0110.01119.63
8.3.40.0070.01018.84
8.3.30.0040.01118.75
8.3.20.0080.00020.04
8.3.10.0030.00520.39
8.3.00.0060.00319.08
8.2.180.0150.00717.93
8.2.170.0110.00722.96
8.2.160.0100.00320.33
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0060.00319.23
8.2.110.0070.00320.55
8.2.100.0080.00417.59
8.2.90.0070.00019.15
8.2.80.0000.00819.34
8.2.70.0060.00317.38
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0030.00618.03
8.2.30.0000.00719.52
8.2.20.0040.00417.61
8.2.10.0050.00217.89
8.2.00.0000.00717.54
8.1.280.0040.01125.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00720.48
8.1.230.0080.00420.88
8.1.220.0040.00418.77
8.1.210.0030.00618.79
8.1.200.0000.01017.23
8.1.190.0040.00417.39
8.1.180.0030.00518.10
8.1.170.0050.00318.50
8.1.160.0080.00018.79
8.1.150.0000.00818.68
8.1.140.0000.00717.27
8.1.130.0000.00717.80
8.1.120.0000.00717.44
8.1.110.0050.00317.32
8.1.100.0050.00217.45
8.1.90.0000.00717.38
8.1.80.0040.00417.33
8.1.70.0040.00417.35
8.1.60.0080.00017.52
8.1.50.0000.00817.45
8.1.40.0070.00017.36
8.1.30.0040.00417.42
8.1.20.0030.00517.50
8.1.10.0000.00817.38
8.1.00.0040.00417.24
8.0.300.0040.00419.77
8.0.290.0070.00016.93
8.0.280.0000.00718.27
8.0.270.0000.00717.14
8.0.260.0000.00617.09
8.0.250.0040.00416.79
8.0.240.0000.00716.79
8.0.230.0030.00616.83
8.0.220.0070.00016.85
8.0.210.0030.00316.85
8.0.200.0030.00316.82
8.0.190.0000.00816.72
8.0.180.0050.00216.77
8.0.170.0040.00416.83
8.0.160.0070.00016.78
8.0.150.0030.00316.79
8.0.140.0040.00416.71
8.0.130.0030.00313.17
8.0.120.0030.00516.70
8.0.110.0000.00716.65
8.0.100.0040.00416.64
8.0.90.0030.00516.76
8.0.80.0090.01316.82
8.0.70.0000.00716.90
8.0.60.0040.00416.64
8.0.50.0000.00716.73
8.0.30.0110.00817.04
8.0.20.0110.01017.40
8.0.10.0070.00016.87
8.0.00.0100.00716.72
7.4.330.0050.00015.03
7.4.320.0000.00616.52
7.4.300.0000.00616.49
7.4.290.0000.00716.25
7.4.280.0040.00416.31
7.4.270.0030.00316.56
7.4.260.0030.00316.36
7.4.250.0040.00416.45
7.4.240.0040.00416.30
7.4.230.0040.00416.43
7.4.220.0110.00716.52
7.4.210.0070.01116.43
7.4.200.0070.00016.31
7.4.160.0100.00616.24
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0100.00816.42
7.4.120.0120.00516.44
7.4.110.0090.00916.31
7.4.100.0120.00616.49
7.4.90.0100.00716.51
7.4.80.0000.01716.51
7.4.70.0070.01016.40
7.4.60.0060.01616.44
7.4.50.0040.00416.31
7.4.40.0040.01516.41
7.4.30.0090.01316.29
7.4.00.0120.00614.48
7.3.330.0040.00213.14
7.3.320.0000.00613.19
7.3.310.0050.00316.20
7.3.300.0000.00716.06
7.3.290.0060.01016.19
7.3.280.0050.01116.22
7.3.270.0140.00317.40
7.3.260.0090.01616.09
7.3.250.0120.00816.19
7.3.240.0040.01616.61
7.3.230.0220.00016.39
7.3.210.0100.00616.22
7.3.200.0050.01119.39
7.3.190.0140.00316.13
7.3.180.0120.00816.43
7.3.170.0060.00916.27
7.3.160.0130.00716.13
7.3.10.0090.00916.08
7.3.00.0070.00716.21
7.2.330.0150.00816.39
7.2.320.0120.00416.66
7.2.310.0160.00016.29
7.2.300.0060.01216.36
7.2.290.0120.00616.55
7.2.130.0070.01116.44
7.2.120.0070.00316.59
7.2.110.0040.01116.72
7.2.100.0090.00616.63
7.2.90.0170.00316.15
7.2.80.0120.00416.52
7.2.70.0110.00716.01
7.2.60.0090.00916.30
7.2.50.0280.00516.52
7.2.40.0210.00016.45
7.2.30.0190.00716.49
7.2.20.0140.00716.58
7.2.10.0100.01316.71
7.2.00.0110.01118.04
7.1.250.0070.00615.34
7.1.100.0040.00718.02
7.1.70.0030.01116.66
7.1.60.0260.00019.34
7.1.50.0040.01816.86
7.1.00.0000.08022.30
7.0.200.0050.00516.52
7.0.140.0100.02722.12
7.0.60.0300.06720.05
7.0.50.0070.05717.90
7.0.40.0030.05320.25
7.0.30.0230.07720.30
7.0.20.0170.04020.33
7.0.10.0070.04020.30
7.0.00.0000.04320.23
5.6.280.0000.07320.84
5.6.210.0030.06020.50
5.6.200.0030.09018.19
5.6.190.0170.07320.48
5.6.180.0430.06320.48
5.6.170.0270.05020.62
5.6.160.0070.08318.28
5.6.150.0000.05018.19
5.6.140.0070.05018.26
5.6.130.0130.07318.18
5.6.120.0000.04721.14
5.6.110.0030.07021.13
5.6.100.0030.07021.16
5.6.90.0070.08721.12
5.6.80.0130.07320.53
5.5.350.0170.07020.49
5.5.340.0100.08017.98
5.5.330.0030.04720.19
5.5.320.0300.07320.34
5.5.310.0230.04020.41
5.5.300.0070.04017.98
5.5.290.0130.04718.07
5.5.280.0030.04020.80
5.5.270.0170.04020.88
5.5.260.0000.04320.89
5.5.250.0100.06720.69
5.5.240.3000.03720.16
5.4.450.0600.04019.32
5.4.440.0670.05319.32
5.4.430.0330.04719.54
5.4.420.0130.06019.66
5.4.410.0130.05019.27
5.4.400.0170.04719.07
5.4.390.0200.06319.18
5.4.380.0130.05019.09
5.4.370.0030.05719.16
5.4.360.0130.06019.16
5.4.350.0080.07612.04
5.4.340.0080.05112.03
5.4.320.0090.05012.52
5.4.310.0160.04612.51
5.4.300.0160.04812.52
5.4.290.0080.04012.51
5.4.280.0110.03612.41
5.4.270.0130.03512.41
5.4.260.0070.04212.41
5.4.250.0170.04412.41
5.4.240.0090.04312.41
5.4.230.0070.04312.40
5.4.220.0080.03612.40
5.4.210.0070.04212.40
5.4.200.0060.04312.40
5.4.190.0070.04612.40
5.4.180.0040.04112.39
5.4.170.0060.04112.40
5.4.160.0060.04012.40
5.4.150.0070.04912.39
5.4.140.0100.07312.09
5.4.130.0120.06612.07
5.4.120.0090.04712.04
5.4.110.0130.04012.04
5.4.100.0100.03712.03
5.4.90.0130.03412.03
5.4.80.0090.03712.03
5.4.70.0090.04012.03
5.4.60.0040.04212.02
5.4.50.0050.04412.03
5.4.40.0090.03312.02
5.4.30.0090.04712.01
5.4.20.0050.04012.01
5.4.10.0080.03912.01
5.4.00.0090.03611.50
5.3.290.0110.03912.80
5.3.280.0090.04412.71
5.3.270.0100.04512.73
5.3.260.0050.04312.72
5.3.250.0050.04112.72
5.3.240.0090.03612.72
5.3.230.0120.03912.71
5.3.220.0060.04112.68
5.3.210.0140.03412.68
5.3.200.0080.04112.68
5.3.190.0090.03812.68
5.3.180.0070.04212.68
5.3.170.0070.04912.66
5.3.160.0100.04112.68
5.3.150.0080.04212.68
5.3.140.0060.04712.66
5.3.130.0080.05212.66
5.3.120.0100.03912.66
5.3.110.0140.05112.66
5.3.100.0090.04512.13
5.3.90.0120.03912.11
5.3.80.0050.03812.09
5.3.70.0080.03412.09
5.3.60.0070.03712.08
5.3.50.0060.03712.03
5.3.40.0110.05812.02
5.3.30.0110.03411.98
5.3.20.0070.03911.76
5.3.10.0070.04711.73
5.3.00.0070.03811.72
5.2.170.0060.0309.21
5.2.160.0090.0379.21
5.2.150.0080.0409.21
5.2.140.0100.0559.21
5.2.130.0060.0309.17
5.2.120.0060.0349.17
5.2.110.0130.0399.18
5.2.100.0080.0299.18
5.2.90.0050.0349.18
5.2.80.0070.0349.17
5.2.70.0120.0379.17
5.2.60.0080.0469.13
5.2.50.0090.0369.09
5.2.40.0060.0369.07
5.2.30.0080.0349.05
5.2.20.0090.0649.04
5.2.10.0090.0388.95
5.2.00.0070.0308.80
5.1.60.0050.0288.09
5.1.50.0230.0288.09
5.1.40.0090.0548.07
5.1.30.0060.0428.41
5.1.20.0160.0718.44
5.1.10.0020.0348.16
5.1.00.0070.0338.16
5.0.50.0070.0276.64
5.0.40.0050.0266.50
5.0.30.0050.0366.31
5.0.20.0020.0226.28
5.0.10.0090.0186.26
5.0.00.0040.0366.25
4.4.90.0060.0154.78
4.4.80.0070.0134.75
4.4.70.0060.0204.76
4.4.60.0040.0194.75
4.4.50.0050.0174.77
4.4.40.0060.0324.71
4.4.30.0020.0214.76
4.4.20.0080.0294.84
4.4.10.0050.0204.85
4.4.00.0080.0294.76
4.3.110.0050.0174.67
4.3.100.0020.0184.66
4.3.90.0080.0214.64
4.3.80.0040.0314.59
4.3.70.0050.0254.63
4.3.60.0050.0154.63
4.3.50.0090.0114.63
4.3.40.0090.0384.54
4.3.30.0020.0183.30
4.3.20.0050.0183.28
4.3.10.0060.0353.24
4.3.00.0270.01713.30

preferences:
59.89 ms | 400 KiB | 5 Q