3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[AllowDynamicProperties] class Node { public $next; // forcing dynamic property creation is key } $first = new Node(); $first->previous = $first; $first->next = $first; $cur = $first; $new = new Node(); $new->previous = $cur; $cur->next = $new; $new->next = $first; $first->previous = $new; $cur = $new; try { // Force comparison manually to trigger zend_hash_compare $first == $cur; } catch(Error $e) { echo $e->getMessage(). PHP_EOL; }

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.140.0250.00817.96
8.4.130.0040.00617.89
8.4.120.0070.01320.67
8.4.110.0080.00418.27
8.4.100.0110.00917.83
8.4.90.0130.00717.88
8.4.80.0140.00619.57
8.4.70.0380.00817.88
8.4.60.0390.00818.10
8.4.50.0330.00917.97
8.4.40.0310.00817.65
8.4.30.0390.00917.53
8.4.20.0380.01017.62
8.4.10.0440.00717.44
8.3.270.0080.01116.70
8.3.260.0030.00616.79
8.3.250.0090.01218.97
8.3.240.0090.01116.70
8.3.230.0040.00416.46
8.3.220.0140.00416.67
8.3.210.0320.01016.58
8.3.200.0390.00716.57
8.3.190.0310.00816.71
8.3.180.0320.01016.82
8.3.170.0280.00716.54
8.3.160.0300.00716.55
8.3.150.0400.00716.69
8.3.140.0360.00816.61
8.3.130.0330.00816.63
8.3.120.0350.00916.54
8.3.110.0290.00816.54
8.3.100.0380.00916.63
8.3.90.0370.01116.53
8.3.80.0380.00916.59
8.3.70.0380.00916.72
8.3.60.0390.01016.46
8.3.50.0390.00916.47
8.3.40.0360.00817.37
8.3.30.0300.00717.39
8.3.20.0330.00817.46
8.3.10.0300.01017.41
8.3.00.0250.00817.49
8.2.290.0110.00719.03
8.2.280.0250.00816.71
8.2.270.0310.00816.51
8.2.260.0310.01116.54
8.2.250.0320.00916.72
8.2.240.0320.00916.49
8.2.230.0290.00716.40
8.2.220.0290.01116.71
8.2.210.0350.00816.51
8.2.200.0330.00916.53
8.2.190.0320.00816.70
8.2.180.0300.00616.62
8.2.170.0300.00617.81
8.2.160.0280.00417.82
8.2.150.0280.01017.67
8.2.140.0320.01017.46
8.2.130.0340.00817.59
8.2.120.0340.00817.67
8.2.110.0350.00717.52
8.2.100.0320.01117.61
8.2.90.0340.00617.55
8.2.80.0340.00817.29
8.2.70.0320.00617.38
8.2.60.0300.00717.59
8.2.50.0270.00517.53
8.2.40.0330.00917.45
8.2.30.0300.00817.51
8.2.20.0300.01117.39
8.2.10.0290.00917.58
8.2.00.0250.01217.54

preferences:
52.58 ms | 403 KiB | 5 Q