3v4l.org

run code in 300+ PHP versions simultaneously
<?php $posts = $posts = [ [ 'data' => [ 'url' => 'https://hashphp.org', 'author_fullname' => 'alvisleet' ] ], [ 'data' => [ 'url' => 'https://hashphp.org', 'author_fullname' => 'alvisleet' ] ] ]; 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.01618.43
8.3.50.0000.02116.26
8.3.40.0100.00718.95
8.3.30.0070.00718.85
8.3.20.0000.00821.03
8.3.10.0050.00323.48
8.3.00.0040.00422.36
8.2.180.0100.00616.63
8.2.170.0120.00322.96
8.2.160.0100.00722.08
8.2.150.0030.01424.18
8.2.140.0080.00024.66
8.2.130.0080.00019.95
8.2.120.0040.00426.35
8.2.110.0090.00022.20
8.2.100.0060.00617.84
8.2.90.0040.00417.75
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0090.00018.00
8.2.50.0000.00818.10
8.2.40.0000.00820.58
8.2.30.0000.00719.41
8.2.20.0070.00018.04
8.2.10.0050.00319.24
8.2.00.0000.00718.19
8.1.280.0090.00625.92
8.1.270.0030.00520.25
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0080.00320.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01217.22
8.1.190.0000.00817.36
8.1.180.0030.00618.10
8.1.170.0040.00418.64
8.1.160.0030.00318.89
8.1.150.0070.00018.89
8.1.140.0040.00420.30
8.1.130.0000.00720.13
8.1.120.0040.00417.43
8.1.110.0040.00417.49
8.1.100.0060.00617.49
8.1.90.0040.00417.44
8.1.80.0040.00417.38
8.1.70.0030.00317.33
8.1.60.0030.00617.59
8.1.50.0040.00417.41
8.1.40.0060.00317.48
8.1.30.0050.00317.63
8.1.20.0060.00317.64
8.1.10.0030.00617.55
8.1.00.0030.00617.50
8.0.300.0040.00419.97
8.0.290.0070.00016.63
8.0.280.0030.00518.34
8.0.270.0030.00317.26
8.0.260.0030.00320.23
8.0.250.0070.00017.00
8.0.240.0030.00317.09
8.0.230.0050.00317.07
8.0.220.0030.00616.87
8.0.210.0000.00716.84
8.0.200.0030.00316.88
8.0.190.0000.00716.95
8.0.180.0000.00716.88
8.0.170.0090.00016.86
8.0.160.0040.00417.04
8.0.150.0000.00716.88
8.0.140.0000.00716.89
8.0.130.0030.00313.36
8.0.120.0080.00016.93
8.0.110.0050.00217.00
8.0.100.0080.00016.98
8.0.90.0040.00416.98
8.0.80.0030.01016.97
8.0.70.0070.00016.99
8.0.60.0080.00016.94
8.0.50.0000.00816.83
8.0.30.0120.00717.02
8.0.20.0110.00917.09
8.0.10.0000.00716.96
8.0.00.0150.00816.75
7.4.330.0000.00615.55
7.4.320.0070.00016.55
7.4.300.0030.00316.59
7.4.290.0070.00016.57
7.4.280.0000.00816.63
7.4.270.0070.00016.52
7.4.260.0000.00716.38
7.4.250.0040.00416.42
7.4.240.0030.00316.43
7.4.230.0000.00716.39
7.4.220.0050.00416.66
7.4.210.0040.01316.60
7.4.200.0040.00416.62
7.4.160.0100.00816.50
7.4.140.0080.01117.86
7.4.130.0080.00816.46
7.4.120.0070.01116.65
7.4.110.0060.01116.53
7.4.100.0070.01016.54
7.4.90.0140.00316.63
7.4.80.0120.00819.39
7.4.70.0130.00316.76
7.4.60.0100.00716.52
7.4.50.0080.00816.30
7.4.40.0130.00316.62
7.4.00.0030.00914.94
7.3.330.0000.00613.22
7.3.320.0060.00013.22
7.3.310.0000.00716.39
7.3.300.0030.00316.41
7.3.290.0030.00316.40
7.3.280.0130.00716.35
7.3.260.0140.00716.51
7.3.240.0090.00916.48
7.3.230.0080.00816.53
7.3.210.0070.01016.57
7.3.200.0040.01216.62
7.3.190.0030.01316.55
7.3.180.0090.00916.30
7.3.170.0120.00916.34
7.3.160.0120.00316.43
7.3.30.0040.00714.61
7.3.20.0550.00314.63
7.3.10.0510.00314.77
7.3.00.0640.00714.91
7.2.330.0070.01016.70
7.2.320.0030.01416.76
7.2.310.0090.00916.72
7.2.300.0130.00316.52
7.2.290.0100.01016.76
7.2.160.0060.00914.73
7.2.150.0560.00314.91
7.2.140.0480.00614.59
7.2.130.0690.00714.55
7.2.120.0380.01015.23
7.2.110.0400.00414.76
7.2.100.0440.00614.49
7.2.90.0460.00714.89
7.2.80.0470.00014.94
7.2.70.0790.00314.55
7.2.60.0490.01014.88
7.2.50.0610.00314.89
7.2.40.0470.00314.88
7.2.30.0580.00314.94
7.2.20.0470.00614.89
7.2.10.0550.01014.99
7.2.00.0530.00314.69
7.1.270.0540.01313.55
7.1.260.0520.00613.51
7.1.250.0630.01013.55

preferences:
58.12 ms | 401 KiB | 5 Q