3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = microtime(true); for ($i = 1; $i <= 100000; ++$i) { $obj = new stdClass; spl_object_id($obj); } $time_end = microtime(true); $for_time = $time_end - $time_start; echo "call in loop took: " . number_format($for_time * 1000, 3) . "ms\n";

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.4.30.0290.01417.45
8.4.20.0300.01417.82
8.4.10.0310.01417.86
8.3.160.0450.01016.55
8.3.150.0410.01216.39
8.3.140.0320.01516.35
8.3.130.0220.01016.44
8.3.120.0140.00916.53
8.3.110.0290.01216.36
8.3.100.0240.01116.41
8.3.90.0370.01516.35
8.3.80.0360.01616.35
8.3.70.0350.01616.25
8.3.60.0370.01416.41
8.3.50.0340.01516.41
8.3.40.0260.02217.42
8.3.30.0260.01317.19
8.3.20.0360.01017.29
8.3.10.0380.01317.25
8.3.00.0160.01718.29
8.2.270.0250.01816.32
8.2.260.0300.00816.46
8.2.250.0290.01316.40
8.2.240.0320.01316.47
8.2.230.0290.01516.23
8.2.220.0270.01716.36
8.2.210.0300.01516.19
8.2.200.0320.01616.54
8.2.190.0290.01416.37
8.2.180.0290.01416.32
8.2.170.0220.01217.63
8.2.160.0300.01917.40
8.2.150.0320.01717.41
8.2.140.0360.01217.21
8.2.130.0360.01017.33
8.2.120.0280.01617.28
8.2.110.0230.01219.86
8.2.100.0160.01117.73
8.2.90.0280.01217.30
8.2.80.0280.01317.22
8.2.70.0300.01217.36
8.2.60.0290.01217.34
8.2.50.0240.01817.45
8.2.40.0230.01517.34
8.2.30.0310.01117.40
8.2.20.0250.01417.42
8.2.10.0270.01317.48
8.2.00.0250.01417.40
8.1.310.0310.01815.89
8.1.300.0270.01615.89
8.1.290.0310.01416.09
8.1.280.0330.01316.02
8.1.270.0290.01417.18
8.1.260.0250.01517.25
8.1.250.0210.00817.39
8.1.240.0230.01417.22
8.1.230.0300.01517.12
8.1.220.0240.01517.16
8.1.210.0260.01217.11
8.1.200.0240.01017.20
8.1.190.0250.01316.98
8.1.180.0300.00917.11
8.1.170.0250.00817.21
8.1.160.0250.01117.35
8.1.150.0260.01217.15
8.1.140.0220.01417.20
8.1.130.0230.01617.17
8.1.120.0270.01117.28
8.1.110.0290.00917.32
8.1.100.0260.01217.16
8.1.90.0260.01217.34
8.1.80.0250.01217.10
8.1.70.0230.01517.24
8.1.60.0220.01417.32
8.1.50.0260.01217.26
8.1.40.0240.01617.27
8.1.30.0270.01017.45
8.1.20.0270.01217.31
8.1.10.0250.01417.26
8.1.00.0210.01717.13
8.0.300.0270.00916.66
8.0.290.0240.00816.67
8.0.280.0270.01016.67
8.0.270.0250.01316.58
8.0.260.0290.00916.72
8.0.250.0230.01416.69
8.0.240.0250.00916.75
8.0.230.0310.00916.70
8.0.220.0230.01516.69
8.0.210.0280.01516.70
8.0.200.0210.01516.67
8.0.190.0310.00916.65
8.0.180.0240.01416.68
8.0.170.0270.01016.77
8.0.160.0270.01216.61
8.0.150.0300.00916.72
8.0.140.0240.01216.67
8.0.130.0270.01016.66
8.0.120.0270.01016.66
8.0.110.0260.01016.70
8.0.100.0260.01216.60
8.0.90.0260.01316.61
8.0.80.0260.01017.35
8.0.70.0310.01016.63
8.0.60.0250.01216.55
8.0.50.0220.01516.59
8.0.30.0260.01216.63
8.0.20.0250.01116.66
8.0.10.0260.01116.69

preferences:
29.24 ms | 403 KiB | 5 Q