3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array(1,2,3,4,5); $db = new PDO("sqlite::memory:"); $db->exec("CREATE TABLE t(n REAL);"); $db->exec("INSERT INTO t VALUES (". implode("),(", $arr).")"); var_dump($db->query("SELECT n FROM t ORDER BY n DESC LIMIT 1,1")->fetch()[0]);

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.5.00.0140.00920.60
8.4.150.0020.00014.05
8.4.140.0120.00918.63
8.4.130.0050.00418.76
8.4.120.0070.00223.49
8.4.110.0040.00523.38
8.4.100.0120.00918.79
8.4.90.0160.00718.84
8.4.80.0040.00518.57
8.4.70.0060.00318.84
8.4.60.0150.00818.73
8.4.50.0150.00718.64
8.4.40.0190.00021.63
8.4.30.0080.00823.00
8.4.20.0180.00419.59
8.4.10.0060.00324.71
8.3.280.0140.00819.38
8.3.270.0130.00717.55
8.3.260.0030.00717.51
8.3.250.0080.01219.84
8.3.240.0120.00517.40
8.3.230.0130.00817.45
8.3.220.0040.00418.22
8.3.210.0100.00717.35
8.3.200.0120.00817.63
8.3.190.0120.00517.53
8.3.180.0110.00817.52
8.3.170.0090.00917.84
8.3.160.0160.00317.34
8.3.150.0080.01118.22
8.3.140.0110.01117.57
8.3.130.0040.00719.11
8.3.120.0030.00619.95
8.3.110.0030.01320.94
8.3.100.0100.00624.06
8.3.90.0100.01026.77
8.3.80.0070.00217.97
8.3.70.0100.00617.25
8.3.60.0120.00917.38
8.3.50.0170.00317.37
8.3.40.0150.00622.77
8.3.30.0070.00719.67
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0060.00221.26
8.2.280.0070.00117.68
8.2.270.0140.00719.68
8.2.260.0110.00917.75
8.2.250.0040.00417.61
8.2.240.0030.00620.13
8.2.230.0070.01122.58
8.2.220.0100.00037.54
8.2.210.0100.01026.77
8.2.200.0000.01017.63
8.2.190.0160.00617.50
8.2.180.0070.01417.75
8.2.170.0080.01219.91
8.2.160.0080.00622.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00321.90
8.2.110.0060.00322.98
8.2.100.0100.00021.21
8.2.60.0100.00718.31
8.1.330.0130.00617.89
8.1.320.0130.00717.15
8.1.310.0050.00319.39
8.1.300.0030.01318.94
8.1.290.0030.00630.84
8.1.280.0040.01825.92
8.1.270.0080.00024.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00621.33
8.1.230.0030.00619.45

preferences:
112.15 ms | 403 KiB | 5 Q