3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = Array ( [0] => Array ( ['code'] => 5002, ['$'] => "U.S.A" ) ); echo implode(', ', array_map(function ($entry) { return $entry["$"]; }, $input));

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.280.0070.07320.89
5.6.210.0000.04320.50
5.6.200.0070.04018.18
5.6.190.0030.04720.47
5.6.180.0070.08020.43
5.6.170.0300.07020.67
5.6.160.0030.04320.49
5.6.150.0030.06018.21
5.6.140.0100.04318.14
5.6.130.0100.08318.16
5.6.120.0000.06720.89
5.6.110.0100.04321.11
5.6.100.0070.08020.98
5.6.90.0030.08720.99
5.6.80.0070.07020.41
5.6.70.0430.04320.37
5.5.350.0070.07020.41
5.5.340.0100.04717.98
5.5.330.0030.04020.57
5.5.320.0270.07320.42
5.5.310.0330.06320.37
5.5.300.0070.04018.06
5.5.290.0070.03718.09
5.5.280.0070.08320.89
5.5.270.0070.07320.73
5.5.260.0070.03720.71
5.5.250.0070.05720.58
5.5.240.0100.08020.06
5.4.450.0570.04343.90
5.4.440.0200.04043.86
5.4.430.0230.03743.79
5.4.420.0230.04743.77
5.4.410.0130.05043.77
5.4.400.0400.03743.77
5.4.390.0300.04343.77
5.4.380.0100.05718.55
5.4.370.0100.06018.61
5.4.360.0200.04318.53
5.4.350.0070.06718.55
5.4.340.0200.04718.76
5.4.320.0060.03712.50
5.4.310.0070.04112.50
5.4.300.0090.03312.50
5.4.290.0110.04012.49
5.4.280.0050.03612.39
5.4.270.0080.03412.39
5.4.260.0120.05212.39
5.4.250.0040.04012.40
5.4.240.0090.03412.39
5.4.230.0080.04212.39
5.4.220.0070.03612.39
5.4.210.0080.03412.39
5.4.200.0050.03912.39
5.4.190.0050.03912.39
5.4.180.0050.04012.39
5.4.170.0080.03812.40
5.4.160.0060.03612.39
5.4.150.0050.03712.39
5.4.140.0080.04212.07
5.4.130.0070.03912.06
5.4.120.0090.03712.02
5.4.110.0100.03612.01
5.4.100.0110.03612.02
5.4.90.0080.04812.01
5.4.80.0100.04712.01
5.4.70.0070.04512.01
5.4.60.0120.03112.01
5.4.50.0070.04212.01
5.4.40.0080.04012.00
5.4.30.0060.03612.00
5.4.20.0040.03812.00
5.4.10.0080.03911.99
5.4.00.0060.04111.48
5.3.280.0060.03812.71
5.3.270.0080.03812.72
5.3.260.0100.05412.71
5.3.250.0100.05412.72
5.3.240.0070.03712.72
5.3.230.0070.04912.71
5.3.220.0090.04712.68
5.3.210.0100.03612.68
5.3.200.0080.04312.68
5.3.190.0130.04712.67
5.3.180.0060.04312.68
5.3.170.0070.03612.67
5.3.160.0080.03512.68
5.3.150.0060.04112.67
5.3.140.0070.03812.66
5.3.130.0050.04112.65
5.3.120.0090.03812.66
5.3.110.0050.04312.66
5.3.100.0050.04012.12
5.3.90.0090.03412.09
5.3.80.0100.03312.07
5.3.70.0080.03712.07
5.3.60.0070.03712.07
5.3.50.0060.03612.00
5.3.40.0070.03912.00
5.3.30.0020.04311.95
5.3.20.0050.04411.72
5.3.10.0060.03611.70
5.3.00.0050.03811.68
5.2.170.0060.0319.18
5.2.160.0080.0399.18
5.2.150.0100.0379.18
5.2.140.0090.0449.18
5.2.130.0090.0339.14
5.2.120.0040.0489.14
5.2.110.0040.0329.14
5.2.100.0060.0309.14
5.2.90.0030.0319.14
5.2.80.0060.0349.14
5.2.70.0060.0389.14
5.2.60.0100.0379.09
5.2.50.0060.0369.06
5.2.40.0050.0329.04
5.2.30.0070.0289.01
5.2.20.0030.0349.00
5.2.10.0070.0268.92
5.2.00.0060.0288.79
5.1.60.0060.0248.07
5.1.50.0030.0268.06
5.1.40.0050.0278.04
5.1.30.0030.0298.40
5.1.20.0070.0258.42
5.1.10.0050.0318.14
5.1.00.0050.0278.14
5.0.50.0040.0206.62
5.0.40.0080.0156.47
5.0.30.0020.0376.29
5.0.20.0040.0246.26
5.0.10.0030.0216.24
5.0.00.0050.0336.23
4.4.90.0060.0204.78
4.4.80.0090.0184.75
4.4.70.0040.0164.75
4.4.60.0050.0204.76
4.4.50.0030.0244.77
4.4.40.0030.0354.70
4.4.30.0040.0144.75
4.4.20.0030.0184.85
4.4.10.0020.0174.85
4.4.00.0030.0254.75
4.3.110.0040.0154.67
4.3.100.0020.0164.67
4.3.90.0060.0144.63
4.3.80.0040.0244.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0040.0234.54
4.3.30.0040.0143.29
4.3.20.0030.0193.27
4.3.10.0030.0153.22
4.3.00.0030.02043.77

preferences:
139.66 ms | 1394 KiB | 7 Q