3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My; foreach (get_defined_functions()['internal'] as $function) { if ($function === 'assert') continue; $declaration = sprintf( 'namespace My; function %s() { $start = \microtime(true); $retval = \call_user_func_array("%s", \func_get_args()); echo \microtime(true) - $start, PHP_EOL; return $retval; }', $function, $function, $function, $function ); eval($declaration); }; echo strtotime('today');

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.5.20.0130.00719.76
8.5.10.0120.00616.84
8.5.00.0100.01220.30
8.4.170.0140.00922.00
8.4.160.0140.00822.02
8.4.150.0030.00014.05
8.4.140.0080.01217.69
8.4.130.0100.00918.10
8.4.120.0100.00522.07
8.4.110.0140.00618.83
8.4.100.0150.00718.19
8.4.90.0110.00820.98
8.4.80.0050.00318.95
8.4.70.0060.00618.71
8.4.60.0110.00620.47
8.4.50.0140.00719.70
8.4.40.0060.00320.61
8.4.30.0030.00620.53
8.4.20.0170.00318.96
8.4.10.0030.00619.53
8.3.300.0190.01920.30
8.3.290.0110.02522.33
8.3.280.0190.01820.39
8.3.270.0100.02518.34
8.3.260.0110.02018.21
8.3.250.0160.01420.34
8.3.240.0070.00618.31
8.3.230.0120.02118.20
8.3.220.0120.01720.39
8.3.210.0110.02018.37
8.3.200.0050.01018.25
8.3.190.0110.02319.11
8.3.180.0110.01818.42
8.3.170.0100.02021.01
8.3.160.0100.02020.59
8.3.150.0100.02022.77
8.3.140.0130.00318.34
8.3.130.0030.01018.49
8.3.120.0120.01820.46
8.3.110.0070.01120.94
8.3.100.0090.02224.06
8.3.90.0100.02126.77
8.3.80.0030.01318.25
8.3.70.0160.01320.38
8.3.60.0130.01320.62
8.3.50.0130.02318.46
8.3.40.0160.02020.90
8.3.30.0070.02020.46
8.3.20.0080.00524.18
8.3.10.0070.00725.82
8.3.00.0030.01026.16
8.2.300.0120.02222.00
8.2.290.0090.01521.97
8.2.280.0100.01622.14
8.2.270.0100.02418.75
8.2.260.0170.01322.58
8.2.250.0030.01218.50
8.2.240.0130.01720.98
8.2.230.0060.00922.58
8.2.220.0000.01437.54
8.2.210.0070.02226.77
8.2.200.0110.00618.13
8.2.190.0170.02018.25
8.2.180.0110.02825.92
8.2.170.0190.00622.96
8.2.160.0140.01022.96
8.2.150.0090.00625.66
8.2.140.0040.01124.66
8.2.130.0030.01026.16
8.2.120.0030.00919.90
8.2.110.0070.00722.11
8.2.100.0060.00920.81
8.1.340.0170.02321.91
8.1.330.0150.01523.59
8.1.320.0090.02320.29
8.1.310.0070.00718.61
8.1.300.0090.00617.82
8.1.290.0100.01020.20
8.1.280.0200.01725.92
8.1.270.0060.00923.61
8.1.260.0120.00326.35
8.1.250.0030.01028.09
8.1.240.0130.01323.65
8.1.230.0060.01022.73
8.0.70.0050.03018.62
7.4.200.0110.03018.25

preferences:
29.76 ms | 403 KiB | 5 Q