3v4l.org

run code in 300+ PHP versions simultaneously
<?php $countItems = dbh->query("SELECT count(*) FROM table WHERE ItemID='1' AND User='Jim'")->fetchColumn(); if ($countItems == 0) { echo "Empty"; }

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.0150.00016.88
8.3.60.0090.00618.56
8.3.50.0180.00418.25
8.3.40.0100.01018.68
8.3.30.0110.00418.61
8.3.20.0080.00024.18
8.3.10.0030.00524.66
8.3.00.0080.00026.16
8.2.190.0170.00016.75
8.2.180.0070.01325.92
8.2.170.0120.00918.99
8.2.160.0060.00922.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0000.00726.35
8.2.110.0030.00720.46
8.2.100.0000.01020.35
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0080.00320.00
8.1.230.0030.00718.99
7.4.70.0080.00816.54
7.4.60.0050.01015.93
7.4.50.0120.00616.04
7.4.40.0160.00015.97
7.4.30.0060.00916.05
7.4.20.0070.01015.85
7.4.10.0060.01016.13
7.4.00.0060.00916.50
7.3.190.0060.01016.07
7.3.180.0080.00816.09
7.3.170.0100.00716.05
7.3.160.0110.00416.23
7.3.150.0090.00616.14
7.3.140.0090.00616.27
7.3.130.0100.00616.07
7.3.120.0070.00816.16
7.3.110.0150.00016.07
7.3.100.0040.01116.02
7.3.90.0100.00516.09
7.3.80.0060.00816.08
7.3.70.0040.01116.12
7.3.60.0150.00015.97
7.3.50.0030.01316.11
7.3.40.0080.00815.98
7.3.30.0040.01116.15
7.3.20.0060.00916.00
7.3.10.0050.01216.03
7.3.00.0150.00616.17
7.2.310.0060.01015.97
7.2.300.0030.01316.27
7.2.290.0000.01716.30
7.2.280.0150.00316.29
7.2.270.0060.00916.14
7.2.260.0060.01016.27
7.2.250.0000.01615.97
7.2.240.0080.00816.06
7.2.230.0080.00816.14
7.2.220.0110.00416.13
7.2.210.0060.00916.16
7.2.200.0030.01216.10
7.2.190.0100.00616.07
7.2.180.0060.01016.28
7.2.170.0060.00916.11
7.2.160.0030.01216.08
7.2.150.0030.01316.14
7.2.140.0060.01616.13
7.2.130.0130.00616.11
7.2.120.0040.01216.30
7.2.110.0070.01016.16
7.2.100.0100.00616.19
7.2.90.0120.00316.37
7.2.80.0080.00816.07
7.2.70.0070.01116.04
7.2.60.0030.01316.20
7.2.50.0100.00616.11
7.2.40.0100.00716.35
7.2.30.0060.01016.39
7.2.20.0040.01416.17
7.2.10.0620.00616.26
7.2.00.0140.00316.14

preferences:
18.91 ms | 401 KiB | 5 Q