3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start=hrtime(true); $code = '<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");'; $tokens = token_get_all($code); foreach ($tokens as $token) { if (is_array($token)) { echo "Line {$token[2]}: ", token_name($token[0]), " ('{$token[1]}')", PHP_EOL; } } $end=hrtime(true); $eta=$end-$start; echo $eta/1e+6; //nanoseconds to milliseconds

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.130.0070.00517.88
8.4.120.0090.01120.66
8.4.110.0110.00920.45
8.4.100.0120.00817.92
8.4.90.0110.00217.81
8.4.80.0120.00817.83
8.4.70.0120.00917.67
8.4.60.0070.00117.98
8.4.50.0080.00820.43
8.4.40.0180.00017.64
8.4.30.0060.01320.52
8.4.20.0100.01021.44
8.4.10.0090.00619.37
8.3.260.0100.01016.67
8.3.250.0140.00518.96
8.3.240.0140.00516.47
8.3.230.0130.00616.48
8.3.220.0100.00617.23
8.3.210.0100.01016.42
8.3.200.0130.00616.58
8.3.190.0090.00917.20
8.3.180.0100.00918.85
8.3.170.0090.00616.98
8.3.160.0120.00618.40
8.3.150.0110.00717.30
8.3.140.0150.00316.54
8.3.130.0370.00516.40
8.3.120.0320.01116.63
8.3.110.0350.00716.26
8.3.100.0350.00416.45
8.3.90.0350.00916.29
8.3.80.0380.01116.61
8.3.70.0370.01016.50
8.3.60.0430.00616.29
8.3.50.0350.01416.22
8.3.40.0180.00017.41
8.3.30.0230.00017.53
8.3.20.0140.00217.32
8.3.10.0120.00617.59
8.3.00.0030.00717.58
8.2.290.0090.01020.21
8.2.280.0120.00816.67
8.2.270.0060.01316.76
8.2.260.0000.00817.55
8.2.250.0140.00416.20
8.2.240.0340.00016.65
8.2.230.0330.00916.29
8.2.220.0350.00316.67
8.2.210.0250.01116.53
8.2.200.0280.00716.31
8.2.190.0270.00616.42
8.2.180.0300.01116.35
8.2.170.0460.00417.52
8.2.160.0250.01317.73
8.2.150.0340.00017.46
8.2.140.0310.00317.39
8.2.130.0310.01417.32
8.2.120.0310.00817.19
8.2.110.0290.00617.48
8.2.100.0310.00617.36
8.2.90.0330.01017.57
8.2.80.0340.01417.42
8.2.70.0480.01017.31
8.2.60.0350.00817.36
8.2.50.0300.01317.59
8.2.40.0300.01017.15
8.2.30.0330.00817.46
8.2.20.0280.00917.53
8.2.10.0280.00917.51
8.2.00.0240.01417.58
8.1.330.0060.00316.89
8.1.320.0140.00518.23
8.1.310.0150.00316.39
8.1.300.0340.00616.18
8.1.290.0280.01016.18
8.1.280.0360.00316.18
8.1.270.0330.01117.15
8.1.260.0320.01017.32
8.1.250.0360.00317.31
8.1.240.0290.00717.14
8.1.230.0340.00317.20
8.1.220.0330.00717.04
8.1.210.0340.00717.26
8.1.200.0270.01017.25
8.1.190.0240.01616.98
8.1.180.0300.00417.18
8.1.170.0080.00817.20
8.1.160.0100.00717.21
8.1.150.0200.01217.16
8.1.140.0330.00317.05
8.1.130.0380.00317.01
8.1.120.0260.00317.46
8.1.110.0110.01917.22
8.1.100.0260.00617.16
8.1.90.0390.00717.23
8.1.80.0310.00816.89
8.1.70.0250.01116.89
8.1.60.0330.00617.27
8.1.50.0270.01217.26
8.1.40.0260.01117.36
8.1.30.0200.01317.48
8.1.20.0370.00417.05
8.1.10.0340.00517.42
8.1.00.0390.00017.34

preferences:
61.9 ms | 403 KiB | 5 Q