3v4l.org

run code in 300+ PHP versions simultaneously
<?php const MADNESS = <<<EOM <?php yield // this comment doesn't make sense, but hey, why not? /* the blank line above doesn't make sense either, as well as this comment */ /* and thinking about it – */ // why not go batshit crazy with this? /* he */ from gen2(); EOM; $comments = token_get_all("<?php" . substr(token_get_all(MADNESS)[2][1], 5, -4)); array_shift($comments); // drop <?php var_dump($comments);

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.120.0070.00420.45
8.4.110.0100.00718.55
8.4.100.0130.00817.46
8.4.90.0120.01018.69
8.4.80.0050.00320.31
8.4.70.0080.01318.00
8.4.60.0150.00620.70
8.4.50.0090.01118.61
8.4.40.0180.00317.69
8.4.30.0040.00419.04
8.4.20.0120.00919.71
8.4.10.0090.00919.59
8.3.250.0120.00619.11
8.3.240.0090.01116.91
8.3.230.0110.00916.74
8.3.220.0050.00317.13
8.3.210.0080.00718.31
8.3.200.0070.00116.63
8.3.190.0050.00316.62
8.3.180.0070.00816.53
8.3.170.0090.00916.36
8.3.160.0070.01117.42
8.3.150.0090.00917.13
8.3.140.0060.00316.61
8.3.130.0130.00618.29
8.3.120.0100.00020.61
8.3.110.0130.00720.94
8.3.100.0070.01016.41
8.3.90.0380.01026.77
8.3.80.0380.01126.77
8.3.70.0420.00626.77
8.3.60.0440.00826.77
8.3.50.0470.00426.77
8.3.40.0300.01226.77
8.3.30.0300.01026.77
8.3.20.0350.00826.77
8.3.10.0300.00926.77
8.3.00.0250.00626.77
8.2.290.0070.00120.48
8.2.280.0120.00718.38
8.2.270.0110.00717.29
8.2.260.0000.00816.52
8.2.250.0060.01316.46
8.2.240.0090.00017.16
8.2.230.0030.00722.58
8.2.220.0120.00424.06
8.2.210.0190.00526.77
8.2.200.0300.00626.77
8.2.190.0220.00626.77
8.2.180.0200.00426.77
8.2.170.0180.00426.77
8.2.160.0240.00826.77
8.2.150.0350.00526.77
8.2.140.0260.01026.77
8.2.130.0290.00926.77
8.2.120.0230.01126.77
8.2.110.0310.00226.77
8.2.100.0330.00826.77
8.2.90.0290.00926.77
8.2.80.0290.00926.77
8.2.70.0280.00926.77
8.2.60.0320.00526.77
8.2.50.0380.00526.77
8.2.40.0310.00726.77
8.2.30.0280.00726.77
8.2.20.0310.00626.77
8.2.10.0300.00726.77
8.2.00.0350.00726.77
8.1.330.0120.00721.89
8.1.320.0120.00716.04
8.1.310.0060.00317.77
8.1.300.0060.00317.91
8.1.290.0310.01526.77
8.1.280.0350.00826.77
8.1.270.0400.00326.77
8.1.260.0400.00526.77
8.1.250.0240.00426.77
8.1.240.0190.00726.77
8.1.230.0270.00826.77
8.1.220.0280.01126.77
8.1.210.0350.00926.77
8.1.200.0270.00826.77
8.1.190.0280.00726.77
8.1.180.0330.00426.77
8.1.170.0240.00726.77
8.1.160.0310.00926.77
8.1.150.0290.00626.77
8.1.140.0250.01026.77
8.1.130.0270.00526.77
8.1.120.0290.00426.77
8.1.110.0200.00726.77
8.1.100.0230.00826.77
8.1.90.0220.00626.77
8.1.80.0230.00626.77
8.1.70.0240.00826.77
8.1.60.0270.00526.77
8.1.50.0220.00626.77
8.1.40.0250.00926.77
8.1.30.0310.00426.77
8.1.20.0280.00626.77
8.1.10.0330.00726.77
8.1.00.0330.00926.77

preferences:
26.5 ms | 403 KiB | 5 Q