3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = <<<'code' <?php function system_update_10101(&$sandbox = NULL) { } code; $tokens = token_get_all($source, TOKEN_PARSE); foreach ($tokens as $token) { if (is_array($token)) { echo token_name($token[0]) , PHP_EOL; } } var_dump($tokens[2]); var_dump($tokens[4]);

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.10.0170.00323.82
8.3.140.0100.00716.55
8.3.130.0000.00918.49
8.3.120.0030.01320.83
8.3.110.0070.00716.62
8.3.100.0110.00724.06
8.3.90.0000.00826.77
8.3.80.0030.00617.97
8.3.70.0040.01116.63
8.3.60.0040.01816.63
8.3.50.0140.00416.75
8.3.40.0070.00721.76
8.3.30.0030.01020.34
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0090.00626.16
8.2.250.0090.00016.74
8.2.240.0190.00017.15
8.2.230.0050.00520.94
8.2.220.0060.00337.54
8.2.210.0120.00626.77
8.2.200.0060.00616.50
8.2.190.0150.00616.68
8.2.180.0140.00016.50
8.2.170.0100.01018.89
8.2.160.0070.00722.96
8.2.150.0100.00325.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0110.00422.11
8.2.110.0060.00319.21
8.2.100.0100.00317.84
8.2.90.0040.00418.16
8.2.80.0050.00320.48
8.2.70.0100.01017.25
8.2.60.0170.00317.50
8.2.50.0180.00017.50
8.2.40.0160.00017.38
8.2.30.0140.00317.25
8.2.20.0170.00017.47
8.2.10.0090.00917.38
8.2.00.0140.00417.50
8.1.300.0040.00416.36
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0000.00724.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01023.78
8.1.230.0110.00020.62
8.1.220.0090.00017.79
8.1.210.0050.00318.97
8.1.200.0140.00417.13
8.1.190.0140.00317.13
8.1.180.0150.00316.88
8.1.170.0110.00716.98
8.1.160.0160.00017.25
8.1.150.0080.01116.88
8.1.140.0180.00017.13
8.1.130.0120.00417.50
8.1.120.0100.00717.25
8.1.110.0100.00717.25
8.1.100.0160.00017.13
8.1.90.0140.00317.23
8.1.80.0080.00817.13
8.1.70.0110.00417.13
8.1.60.0100.01017.24
8.1.50.0130.00717.50
8.1.40.0090.00917.50
8.1.30.0160.00317.50
8.1.20.0000.01817.34
8.1.10.0180.00017.25
8.1.00.0150.00417.13
8.0.300.0000.00920.04
8.0.290.0140.00416.63
8.0.280.0140.00516.61
8.0.270.0120.00616.63
8.0.260.0130.00316.59
8.0.250.0080.00816.63
8.0.240.0130.00316.58
8.0.230.0150.00216.88
8.0.220.0090.00616.75
8.0.210.0130.00316.75
8.0.200.0200.00016.63
8.0.190.0120.00616.88
8.0.180.0070.01116.58
8.0.170.0120.00416.71
8.0.160.0130.00416.88
8.0.150.0110.00616.72
8.0.140.0100.00716.75
8.0.130.0120.00416.62
8.0.120.0150.00016.75
8.0.110.0160.00016.58
8.0.100.0160.00016.63
8.0.90.0100.00716.75
8.0.80.0040.01316.59
8.0.70.0150.00216.58
8.0.60.0130.00616.60
8.0.50.0110.00416.63
8.0.30.0160.00016.58
8.0.20.0170.00016.63
8.0.10.0060.01016.86

preferences:
48.42 ms | 403 KiB | 5 Q