3v4l.org

run code in 300+ PHP versions simultaneously
<?php $large_array = range(0, 250001); $db = new PDO('sqlite::memory:'); $placeholders = implode(', ', array_fill(0, count($large_array), '?')); $stmt = $db->prepare("SELECT 1 WHERE 42 IN ($placeholders)"); var_dump($stmt->execute($large_array));

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.0560.06657.34
8.3.60.0530.05958.04
8.3.50.0780.03756.90
8.3.40.0360.04645.35
8.3.30.0400.03745.45
8.3.20.0260.01648.64
8.3.10.0400.01348.53
8.3.00.0290.01048.26
8.2.190.0490.05958.17
8.2.180.0560.05057.42
8.2.170.0510.03746.88
8.2.160.0510.01948.58
8.2.150.0200.02048.57
8.2.140.0350.00748.48
8.2.130.0290.01048.67
8.2.120.0160.02546.13
8.2.110.0240.01750.42
8.2.100.0330.03746.00
8.2.90.0160.03245.84
8.2.80.0100.03946.74
8.2.70.0100.04045.79
8.2.60.0300.02746.21
8.2.50.0230.02745.72
8.2.40.0100.03547.89
8.2.30.0110.03547.18
8.2.20.0230.02645.93
8.2.10.0280.02147.29
8.2.00.0200.03147.20
8.1.280.0920.06162.19
8.1.270.0200.02050.40
8.1.260.0290.01350.30
8.1.250.0330.01050.46
8.1.240.0330.01350.66
8.1.230.0390.02646.15
8.1.220.0130.03346.00
8.1.210.0360.01145.62
8.1.200.0230.02745.54
8.1.190.0240.02445.50
8.1.180.0200.02745.60
8.1.170.0290.01647.14
8.1.160.0160.03347.08
8.1.150.0170.04046.93
8.1.140.0240.02447.12
8.1.130.0180.02545.58
8.1.120.0280.02145.61
8.1.110.0160.03345.43
8.1.100.0270.02045.54
8.1.90.0250.01945.50
8.1.80.0240.03445.58
8.1.70.0300.01945.76
8.1.60.0160.02945.82
8.1.50.0170.03145.70
8.1.40.0170.03545.72
8.1.30.0100.03645.90
8.1.20.0230.03945.78
8.1.10.0390.05262.27
8.1.00.0170.06062.10
8.0.300.0170.05063.61
8.0.290.0260.04562.08
8.0.280.0130.05263.62
8.0.270.0240.04461.99
8.0.260.0270.04161.98
8.0.250.0170.05662.17
8.0.240.0260.04262.32
8.0.230.0200.05362.21
8.0.220.0330.04061.97
8.0.210.0290.03962.04
8.0.200.0190.04562.27
8.0.190.0360.04662.18
8.0.180.0230.05762.25
8.0.170.0460.04362.24
8.0.160.0270.04062.28
8.0.150.0330.04662.21
8.0.140.0300.04662.08
8.0.130.0200.04958.54
8.0.120.0370.05162.10
8.0.110.0140.05861.84
8.0.100.0290.03961.99
8.0.90.0200.05362.12
8.0.80.0460.09662.08
8.0.70.0230.05362.08
8.0.60.0170.05162.16
8.0.50.0290.04562.16
8.0.30.0660.12661.99
8.0.20.0400.10962.23
8.0.10.0610.08062.12
8.0.00.0840.12862.28
7.4.330.0260.04360.11
7.4.320.0260.04661.80
7.4.300.0210.04661.71
7.4.290.0540.04661.69
7.4.280.0370.04361.64
7.4.270.0500.05361.83
7.4.260.0170.05058.72
7.4.250.0230.04661.70
7.4.240.0200.04761.96
7.4.230.0240.05561.79
7.4.220.0150.05661.79
7.4.210.0460.10361.85
7.4.200.0200.05361.55
7.4.160.0660.10361.95
7.4.150.0590.11561.64
7.4.140.0460.10961.58
7.4.130.0600.12761.79
7.4.120.0570.13261.85
7.4.110.0870.10361.58
7.4.100.0690.09261.94
7.4.90.0800.12761.88
7.4.80.0340.10161.80
7.4.70.0650.12161.93
7.4.60.0470.12261.64
7.4.50.0600.15361.78
7.4.40.0600.08661.78
7.4.30.0650.14661.82
7.4.20.0450.12661.73
7.4.10.0430.10661.59
7.4.00.0520.08461.59
7.3.330.0090.00936.05
7.3.320.0070.01133.28
7.3.310.0120.00636.27
7.3.300.0130.00636.27
7.3.290.0350.02136.29
7.3.270.0380.01036.13
7.3.260.0240.02136.21
7.3.250.0290.02236.22
7.3.240.0290.02936.20
7.3.230.0170.03336.27
7.3.220.0240.01436.16
7.3.210.0300.02636.24
7.3.200.0200.03036.21
7.3.190.0370.02036.14
7.3.180.0200.02036.13
7.3.170.0350.00736.20
7.3.160.0270.01736.23
7.3.150.0220.03536.11
7.3.140.0260.02636.21
7.3.130.0310.01036.27
7.3.120.0270.01336.20
7.3.110.0240.01436.11
7.3.100.0470.01036.18
7.3.90.0260.02636.40
7.3.80.0290.01436.15
7.3.70.0360.01036.27
7.3.60.0220.01936.35
7.3.50.0250.01936.34
7.3.40.0330.00836.23
7.3.30.0270.02036.14
7.3.20.0590.02636.39
7.3.10.0330.01036.14
7.3.00.0510.01336.25

preferences:
58.54 ms | 401 KiB | 5 Q