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_hash($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.0180.03418.77
8.4.20.0170.02218.38
8.4.10.0310.02517.90
8.3.160.0240.02716.42
8.3.150.0220.01717.19
8.3.140.0240.01816.50
8.3.130.0180.02716.30
8.3.120.0220.02616.36
8.3.110.0240.02416.27
8.3.100.0240.02016.47
8.3.90.0240.01816.25
8.3.80.0300.01716.41
8.3.70.0210.02416.27
8.3.60.0250.01616.34
8.3.50.0290.02016.20
8.3.40.0230.03117.24
8.3.30.0290.02817.23
8.3.20.0310.02917.97
8.3.10.0260.02617.33
8.3.00.0150.02417.93
8.2.270.0240.03216.56
8.2.260.0250.02916.82
8.2.250.0210.02916.51
8.2.240.0260.02116.41
8.2.230.0180.02716.24
8.2.220.0290.02216.32
8.2.210.0220.02416.27
8.2.200.0240.02016.32
8.2.190.0280.01916.34
8.2.180.0200.01416.24
8.2.170.0340.01917.56
8.2.160.0240.02217.68
8.2.150.0240.02217.42
8.2.140.0250.02517.37
8.2.130.0360.02217.98
8.2.120.0270.03117.38
8.2.110.0220.02619.36
8.2.100.0210.02317.44
8.2.90.0180.02917.47
8.2.80.0300.02117.68
8.2.70.0210.02217.34
8.2.60.0290.02617.28
8.2.50.0260.02417.45
8.2.40.0230.02317.43
8.2.30.0240.01717.46
8.2.20.0280.02317.33
8.2.10.0230.02517.48
8.2.00.0290.02117.71
8.1.310.0250.02115.83
8.1.300.0180.02416.00
8.1.290.0190.02416.06
8.1.280.0190.02116.04
8.1.270.0260.02417.24
8.1.260.0190.02617.25
8.1.250.0200.01917.26
8.1.240.0170.02617.11
8.1.230.0180.02217.26
8.1.220.0210.02517.20
8.1.210.0250.02017.08
8.1.200.0200.02517.20
8.1.190.0230.02017.01
8.1.180.0250.02017.14
8.1.170.0180.01817.30
8.1.160.0180.01317.59
8.1.150.0230.01717.21
8.1.140.0230.01917.50
8.1.130.0230.01817.14
8.1.120.0290.01717.16
8.1.110.0270.02117.27
8.1.100.0260.02017.25
8.1.90.0240.02517.15
8.1.80.0250.01817.19
8.1.70.0180.02617.32
8.1.60.0210.02017.40
8.1.50.0240.02417.23
8.1.40.0220.02017.42
8.1.30.0230.01817.81
8.1.20.0200.02017.44
8.1.10.0200.01817.37
8.1.00.0200.02417.22
8.0.300.0230.02316.65
8.0.290.0230.02216.62
8.0.280.0190.02316.66
8.0.270.0230.02116.57
8.0.260.0200.02216.63
8.0.250.0270.02616.76
8.0.240.0270.02116.66
8.0.230.0230.02416.73
8.0.220.0210.02416.64
8.0.210.0170.02416.65
8.0.200.0230.02416.56
8.0.190.0230.02316.62
8.0.180.0230.02116.67
8.0.170.0230.02416.66
8.0.160.0230.02616.62
8.0.150.0250.02116.71
8.0.140.0180.02316.62
8.0.130.0220.02816.67
8.0.120.0240.02216.67
8.0.110.0240.01916.64
8.0.100.0250.02316.57
8.0.90.0210.01816.62
8.0.80.0170.02617.18
8.0.70.0190.02616.59
8.0.60.0220.02216.59
8.0.50.0230.02116.58
8.0.30.0260.02516.53
8.0.20.0200.02416.66
8.0.10.0210.02116.71

preferences:
30.76 ms | 403 KiB | 5 Q