3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pdo = new PDO('sqlite::memory:'); $pdo->exec('CREATE TABLE test (a INTEGER, b BLOB);'); $fp = tmpfile(); fwrite($fp, 'Random stuff!'); fseek($fp, 0); $stmt = $pdo->prepare('INSERT INTO test VALUES (?, ?);'); $stmt->bindValue(1, 42); $stmt->bindParam(2, $fp, PDO::PARAM_LOB); $stmt->execute(); var_dump(gettype($fp));

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.0060.01319.18
8.3.50.0070.01018.91
8.3.40.0100.00719.60
8.3.30.0100.00619.37
8.3.20.0000.00822.60
8.3.10.0080.00024.45
8.3.00.0080.00022.65
8.2.180.0100.01019.16
8.2.170.0120.00622.96
8.2.160.0040.01119.91
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0030.00626.16
8.2.120.0060.00320.41
8.2.110.0130.01020.02
8.2.100.0120.00018.66
8.2.90.0080.00018.78
8.2.80.0090.00018.25
8.2.70.0040.00418.68
8.2.60.0050.00318.97
8.2.50.0030.00518.25
8.2.40.0040.00423.15
8.2.30.0000.00819.95
8.2.20.0080.00018.68
8.2.10.0050.00318.84
8.2.00.0030.00620.07
8.1.280.0070.00725.92
8.1.270.0040.00419.66
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0040.00824.48
8.1.230.0040.00821.79
8.1.220.0000.00818.66
8.1.210.0030.00619.91
8.1.200.0050.00318.23
8.1.190.0040.00418.10
8.1.180.0030.00618.26
8.1.170.0030.00619.53
8.1.160.0000.00819.70
8.1.150.0000.00819.75
8.1.140.0040.00423.00
8.1.130.0050.00218.38
8.1.120.0090.00018.30
8.1.110.0040.00418.31
8.1.100.0020.00518.29
8.1.90.0050.00318.29
8.1.80.0030.00818.27
8.1.70.0040.00418.26
8.1.60.0080.00018.36
8.1.50.0000.00918.39
8.1.40.0040.00418.40
8.1.30.0050.00518.59
8.1.20.0000.00818.56
8.1.10.0060.00318.49
8.1.00.0060.00318.31
8.0.300.0040.00420.81
8.0.290.0030.00717.25
8.0.280.0000.00819.27
8.0.270.0040.00417.63
8.0.260.0080.00017.65
8.0.250.0040.00417.78
8.0.240.0050.00317.79
8.0.230.0000.00817.82
8.0.220.0030.00517.73
8.0.210.0060.00217.76
8.0.200.0060.00317.73
8.0.190.0050.00517.72
8.0.180.0060.00317.72
8.0.170.0050.00517.66
8.0.160.0060.00317.68
8.0.150.0030.00517.62
8.0.140.0030.00617.68
8.0.130.0060.00014.23
8.0.120.0040.00417.75
8.0.110.0040.00417.63
8.0.100.0030.00517.79
8.0.90.0030.00417.55
8.0.80.0100.00517.69
8.0.70.0060.00217.62
8.0.60.0010.00617.70
8.0.50.0050.00317.67
8.0.30.0100.00517.70
8.0.20.0070.00717.68
8.0.10.0040.00417.75
8.0.00.0080.00817.73
7.4.330.0030.00317.70
7.4.320.0000.00617.40
7.4.300.0030.00317.33
7.4.290.0000.00717.30
7.4.280.0060.00317.45
7.4.270.0070.00017.39
7.4.260.0060.00317.45
7.4.250.0040.00417.37
7.4.240.0000.00717.46
7.4.230.0020.00617.20
7.4.220.0040.00417.32
7.4.210.0060.00717.34
7.4.200.0020.00617.50
7.4.190.0070.00017.55
7.4.180.0040.00417.38
7.4.160.0050.00917.24
7.4.150.0020.00517.51
7.4.140.0070.01217.78
7.4.130.0100.00417.45
7.4.120.0060.00717.30
7.4.110.0070.00617.21
7.4.100.0100.00617.49
7.4.90.0060.00717.27
7.4.80.0080.00518.36
7.4.70.0050.00817.36
7.4.60.0060.00617.39
7.4.50.0040.00817.41
7.4.40.0140.00017.22
7.4.30.0000.00717.02
7.4.20.0030.00317.29
7.4.10.0070.00017.30
7.4.00.0070.00616.19
7.3.330.0070.00213.95
7.3.320.0070.00013.95
7.3.310.0040.00417.02
7.3.300.0030.00517.06
7.3.290.0000.00817.09
7.3.280.0100.00517.07
7.3.270.0000.00717.04
7.3.260.0090.00817.12
7.3.250.0000.00817.12
7.3.240.0070.00917.15
7.3.230.0040.01117.10
7.3.220.0080.00017.06
7.3.210.0080.00517.07
7.3.200.0070.00917.07
7.3.190.0030.01217.22
7.3.180.0020.01117.15
7.3.170.0090.00617.10
7.3.160.0090.00617.22
7.3.150.0040.00417.05
7.3.140.0020.00517.12
7.3.130.0060.00317.00
7.3.120.0080.00416.21
7.3.110.0030.01016.35
7.3.100.0090.00516.28
7.3.90.0050.00516.35
7.3.80.0050.00716.32
7.3.70.0020.00916.22
7.3.60.0040.00716.35
7.3.50.0070.00316.21
7.3.40.0070.00216.25
7.3.30.0000.01016.17
7.3.20.0090.00417.18
7.3.10.0060.00817.08
7.3.00.0060.00517.11
7.2.340.0040.00417.05
7.2.330.0120.00617.10
7.2.320.0110.00417.15
7.2.310.0030.01017.25
7.2.300.0050.00917.19
7.2.290.0060.00917.28
7.2.280.0000.00817.03
7.2.270.0090.00017.08
7.2.260.0040.00416.99
7.2.250.0060.00816.39
7.2.240.0110.00316.27
7.2.230.0070.00416.45
7.2.220.0020.00816.46
7.2.210.0050.00816.54
7.2.200.0060.00616.39
7.2.190.0060.00416.42
7.2.180.0080.00416.48
7.2.170.0040.00816.53
7.2.160.0020.01016.39
7.2.150.0070.00817.30
7.2.140.0050.00517.36
7.2.130.0030.00917.51
7.2.120.0280.00816.73
7.2.110.0230.00916.61
7.2.100.0250.01016.65
7.2.90.0200.00916.56
7.2.80.0190.00716.68
7.2.70.0200.00616.74
7.2.60.0210.00816.72
7.2.50.0240.00716.77
7.2.40.0340.00616.72
7.2.30.0280.00616.82
7.2.20.0180.00816.74
7.2.10.0170.01116.72
7.2.00.0190.00616.82
7.1.330.0050.00716.50
7.1.320.0100.00416.33
7.1.310.0040.00716.35
7.1.300.0080.00416.25
7.1.290.0050.00716.34
7.1.280.0030.00716.38
7.1.270.0070.00516.32
7.1.260.0060.00516.07
7.1.250.0080.00316.38
7.1.240.0330.00715.08
7.1.230.0490.00915.29
7.1.220.0330.00415.29
7.1.210.0250.00415.21
7.1.200.0470.00315.29
7.1.190.0260.00515.27
7.1.180.0380.01015.25
7.1.170.0250.00515.25
7.1.160.0250.01115.32
7.1.150.0320.00215.31
7.1.140.0290.00415.32
7.1.130.0280.00915.30
7.1.120.0080.00515.41
7.1.110.0420.00315.18
7.1.100.0210.00515.30
7.1.90.0390.00715.30
7.1.80.0200.00815.35
7.1.70.0360.00315.25
7.1.60.0400.00515.21
7.1.50.0090.00615.31
7.1.40.0350.00715.18
7.1.30.0360.00415.37
7.1.20.0360.00715.37
7.1.10.0320.00515.16
7.1.00.0220.00515.38
7.0.330.0060.00415.88
7.0.320.0340.00614.56
7.0.310.0330.00614.93
7.0.300.0290.01014.84
7.0.290.0400.00314.89
7.0.280.0090.00614.88
7.0.270.0100.01014.90
7.0.260.0450.00414.96
7.0.250.0360.00115.05
7.0.240.0200.00415.07
7.0.230.0260.00614.94
7.0.220.0160.00915.12
7.0.210.1260.00314.96
7.0.200.0320.00215.03
7.0.190.0320.00715.00
7.0.180.0360.00815.04
7.0.170.0390.00515.19
7.0.160.0370.00715.08
7.0.150.0280.00714.78
7.0.140.0260.00714.84
7.0.130.0260.00414.97
7.0.120.0230.00614.90
7.0.110.0180.00714.95
7.0.100.0240.00214.94
7.0.90.0180.00414.81
7.0.80.0810.00714.79
7.0.70.0270.00114.80
7.0.60.0240.00414.91
7.0.50.0210.00514.89
7.0.40.0100.01114.83
7.0.30.0190.00715.08
7.0.20.0270.00214.85
7.0.10.0270.00614.89
7.0.00.0200.00714.89
5.6.400.0040.00615.75
5.6.390.0060.00615.53
5.6.380.0080.00615.19
5.6.370.0120.00315.58
5.6.360.0060.00715.72
5.6.350.0080.00615.59
5.6.340.0100.00415.74
5.6.330.0120.00215.52
5.6.320.0120.00515.65
5.6.310.0080.00815.54
5.6.300.0090.00615.62
5.6.290.0050.01115.59
5.6.280.0070.00615.55
5.6.270.0100.00415.56
5.6.260.0110.00415.59
5.6.250.0070.00715.52
5.6.240.0100.00415.60
5.6.230.0100.00515.54
5.6.220.0080.00515.63
5.6.210.0130.00215.67
5.6.200.0080.00615.66
5.6.190.0040.01015.58
5.6.180.0070.00915.59
5.6.170.0050.00915.63
5.6.160.0080.00615.68
5.6.150.0060.00815.65
5.6.140.0080.00715.72
5.6.130.0090.00515.51
5.6.120.0080.00615.68
5.6.110.0050.00815.52
5.6.100.0030.01015.58
5.6.90.0100.00515.53
5.6.80.0080.00415.51
5.6.70.0090.00515.50
5.6.60.0070.00615.60
5.6.50.0040.00615.50
5.6.40.0060.00815.45
5.6.30.0020.00915.48
5.6.20.0100.00315.47
5.6.10.0040.00915.57
5.6.00.0080.00815.46

preferences:
74.17 ms | 401 KiB | 5 Q