3v4l.org

run code in 300+ PHP versions simultaneously
<?php function addToArray ($arg1, $arg2) { $arr = []; $arr [] = $arg1; $arr [] = $arg2; print_r($arr); } addToArray('test', 'dochJulian')

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)
5.6.80.0000.08020.49
5.5.240.0130.06320.16
5.4.400.0370.06018.60
5.4.390.0300.05318.77
5.4.380.0230.06018.59
5.4.370.0270.05718.59
5.4.360.0400.04718.72
5.4.350.0230.07318.72
5.4.340.0330.06318.48
5.4.320.0270.05718.77
5.4.310.0200.08318.69
5.4.300.0300.07318.70
5.4.290.0330.06718.79
5.4.280.0470.06018.44
5.4.270.0330.06318.54
5.4.260.0400.05318.72
5.4.250.0270.05718.69
5.4.240.0200.06018.70
5.4.230.0270.06318.54
5.4.220.0100.06718.54
5.4.210.0270.06018.64
5.4.200.0230.05016.55
5.4.190.0200.05018.70
5.4.180.0230.05018.57
5.4.170.0230.05018.70
5.4.160.0200.05018.78
5.4.150.0170.06018.42
5.4.140.0230.04316.26
5.4.130.0130.04716.44
5.4.120.0100.05716.32
5.4.110.0230.04316.20
5.4.100.0130.05316.25
5.4.90.0200.05716.27
5.4.80.0200.04716.23
5.4.70.0200.06016.17
5.4.60.0130.05316.38
5.4.50.0430.06716.40
5.4.40.0170.05716.18
5.4.30.0200.05316.15
5.4.20.0130.05316.22
5.4.10.0270.04016.20
5.4.00.0230.04015.71
5.3.290.0130.06714.64
5.3.280.0130.06014.72
5.3.270.0200.05314.59
5.3.260.0130.06014.77
5.3.250.0270.04714.65
5.3.240.0070.06014.73
5.3.230.0200.05014.61
5.3.220.0200.05014.67
5.3.210.0230.06314.67
5.3.200.0100.05714.62
5.3.190.0170.06014.70
5.3.180.0130.06014.76
5.3.170.0170.05714.61
5.3.160.0300.06714.59
5.3.150.0370.05314.70
5.3.140.0200.07714.73
5.3.130.0200.07014.66
5.3.120.0100.07014.68
5.3.110.0200.05714.54
5.3.100.0130.05714.15
5.3.90.0200.05314.04
5.3.80.0230.04314.12
5.3.70.0270.04014.14
5.3.60.0170.05314.07
5.3.50.0130.05714.07
5.3.40.0070.06014.04
5.3.30.0130.06013.95
5.3.20.0170.07013.79
5.3.10.0070.05713.72
5.3.00.0200.05713.61
5.2.170.0130.05011.18
5.2.160.0130.05011.13
5.2.150.0130.04711.21
5.2.140.0070.04711.20
5.2.130.0130.05311.22
5.2.120.0030.06011.15
5.2.110.0070.04711.15
5.2.100.0170.03711.11
5.2.90.0030.05311.21
5.2.80.0170.05711.16
5.2.70.0130.04311.16
5.2.60.0100.04711.09
5.2.50.0130.04311.11
5.2.40.0100.04311.20
5.2.30.0030.05311.03
5.2.20.0070.05010.98
5.2.10.0070.04310.89
5.2.00.0170.03710.89
5.1.60.0170.03710.12
5.1.50.0200.04010.17
5.1.40.0170.03310.04
5.1.30.0130.04310.38
5.1.20.0170.03310.48
5.1.10.0100.04010.18
5.1.00.0130.03710.19
5.0.50.0100.0308.63
5.0.40.0000.0378.45
5.0.30.0030.0508.30
5.0.20.0030.0338.30
5.0.10.0030.0338.23
5.0.00.0100.0438.22
4.4.90.0070.0205.90
4.4.80.0000.0305.88
4.4.70.0030.0235.98
4.4.60.0070.0235.88
4.4.50.0100.0206.00
4.4.40.0100.0335.92
4.4.30.0100.0205.92
4.4.20.0000.0275.94
4.4.10.0100.0176.03
4.4.00.0030.0375.91
4.3.110.0030.0235.83
4.3.100.0070.0205.80
4.3.90.0000.0275.82
4.3.80.0070.0335.79
4.3.70.0070.0205.79
4.3.60.0070.0205.89
4.3.50.0070.0205.77
4.3.40.0030.0375.91
4.3.30.0070.0234.68
4.3.20.0030.0234.53
4.3.10.0030.0234.53
4.3.00.0030.0207.27

preferences:
136.43 ms | 1398 KiB | 7 Q