3v4l.org

run code in 300+ PHP versions simultaneously
<?php $posts = [/* put example data here */]; foreach ($posts as $post) { $fetchedurl = $post['data']['url']; $ids = $post['data']['author_fullname']; $fetchedurl = array($fetchedurl); $stmt = $db->prepare("INSERT INTO data ('fetched_url', 'author') VALUES ('?', '?')"); $db->beginTransaction(); $stmt->execute($fetchedurl); $db->commit(); }

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.0070.00718.56
8.3.50.0100.01016.48
8.3.40.0040.01518.77
8.3.30.0070.00718.46
8.3.20.0050.00320.73
8.3.10.0070.00023.39
8.3.00.0030.00622.57
8.2.180.0150.00418.29
8.2.170.0070.01422.96
8.2.160.0100.00322.16
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00019.82
8.2.120.0050.00226.35
8.2.110.0030.00620.44
8.2.100.0030.01019.45
8.2.90.0030.00717.63
8.2.80.0040.00418.73
8.2.70.0060.00617.50
8.2.60.0040.00417.50
8.2.50.0000.00817.63
8.2.40.0080.00019.35
8.2.30.0000.00919.47
8.2.20.0040.00418.12
8.2.10.0040.00419.16
8.2.00.0040.00418.16
8.1.280.0090.00925.92
8.1.270.0080.00020.37
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.06
8.1.230.0060.00617.65
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0040.00418.96
8.1.160.0000.00718.82
8.1.150.0060.00318.93
8.1.140.0030.00320.17
8.1.130.0050.00320.13
8.1.120.0070.00017.35
8.1.110.0040.00417.44
8.1.100.0070.00517.44
8.1.90.0030.00517.46
8.1.80.0050.00317.42
8.1.70.0020.00517.45
8.1.60.0050.00317.57
8.1.50.0030.00617.50
8.1.40.0040.00417.43
8.1.30.0030.00617.62
8.1.20.0060.00617.68
8.1.10.0050.00317.47
8.1.00.0000.00717.32
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0020.00518.01
8.0.270.0000.00717.96
8.0.260.0030.00320.21
8.0.250.0000.00716.96
8.0.240.0060.00016.94
8.0.230.0000.00716.92
8.0.220.0040.00416.90
8.0.210.0000.00616.88
8.0.200.0070.00016.92
8.0.190.0070.00016.98
8.0.180.0040.00416.80
8.0.170.0000.00816.89
8.0.160.0000.00716.78
8.0.150.0030.00316.84
8.0.140.0070.00016.76
8.0.130.0000.00513.36
8.0.120.0040.00416.82
8.0.110.0000.00716.75
8.0.100.0040.00416.90
8.0.90.0000.00716.94
8.0.80.0110.00716.87
8.0.70.0000.00716.76
8.0.60.0040.00416.87
8.0.50.0000.00716.95
8.0.30.0110.01217.16
8.0.20.0080.01217.05
8.0.10.0050.00217.04
8.0.00.0120.00716.72
7.4.330.0030.00315.55
7.4.320.0050.00316.45
7.4.300.0030.00316.56
7.4.290.0030.00316.50
7.4.280.0080.00016.61
7.4.270.0000.00716.61
7.4.260.0070.00016.50
7.4.250.0050.00316.32
7.4.240.0050.00216.43
7.4.230.0080.00016.41
7.4.220.0080.00016.44
7.4.210.0030.01216.60
7.4.200.0030.00316.51
7.4.160.0090.00516.43
7.4.140.0170.00317.86
7.4.130.0110.01016.46
7.4.120.0030.01316.46
7.4.110.0090.00916.26
7.4.100.0070.01016.32
7.4.90.0170.00016.51
7.4.80.0150.00919.39
7.4.70.0120.00916.60
7.4.60.0060.01016.40
7.4.50.0210.01116.36
7.4.40.0000.01716.50
7.4.00.0030.01414.86
7.3.330.0050.00013.14
7.3.320.0060.00013.02
7.3.310.0070.00016.39
7.3.300.0060.00016.16
7.3.290.0030.01216.25
7.3.280.0090.00916.28
7.3.260.0100.00816.51
7.3.240.0080.00816.37
7.3.230.0150.00416.20
7.3.210.0130.00916.25
7.3.200.0170.00616.54
7.3.190.0130.00316.40
7.3.180.0070.01116.39
7.3.170.0030.01316.27
7.3.160.0120.00316.39
7.3.120.0070.01014.81
7.3.110.0080.01114.81
7.3.100.0030.01214.90
7.3.90.0090.00714.86
7.3.80.0030.00914.75
7.3.70.0070.00814.85
7.3.60.0030.00914.76
7.3.50.0050.01114.65
7.3.40.0090.00514.69
7.3.30.0120.00514.67
7.3.20.4160.01215.83
7.3.10.3720.00515.88
7.3.00.3780.01215.73
7.2.330.0080.00816.69
7.2.320.0120.00616.39
7.2.310.0180.00616.67
7.2.300.0140.00716.51
7.2.290.0070.01016.50
7.2.250.0100.01015.13
7.2.240.0060.01115.07
7.2.230.0020.01215.03
7.2.220.0030.01414.97
7.2.210.0070.00514.68
7.2.200.0000.01515.11
7.2.190.0040.00814.84
7.2.180.0060.00814.91
7.2.170.0090.00614.69
7.2.160.0120.01014.72
7.2.150.5160.00815.46
7.2.140.6230.00715.58
7.2.130.5260.01015.82
7.2.120.5970.00315.86
7.2.110.5290.00815.86
7.2.100.5110.01115.99
7.2.90.5870.01015.93
7.2.80.5650.01315.76
7.2.70.4610.00516.10
7.2.60.1600.00815.84
7.2.50.0720.01115.70
7.2.40.1720.00515.76
7.2.30.4670.00715.63
7.2.20.2580.00915.70
7.2.10.5770.00915.73
7.2.00.6080.00315.68
7.1.330.0140.00015.57
7.1.320.0060.00715.66
7.1.310.0040.01215.84
7.1.300.0070.00715.77
7.1.290.0020.01215.44
7.1.280.0030.01015.74
7.1.270.2930.00314.88
7.1.260.3240.00714.85
7.1.250.2550.00614.85

preferences:
65.46 ms | 401 KiB | 5 Q