3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = '{\n "ip": "68.180.224.179",\n "hostname": "b100099.yse.yahoo.net",\n "city": "Sunnyvale",\n "region": "California",\n "country": "US",\n "loc": "37.4249,-122.0074",\n "org": "AS36647 Yahoo",\n "postal": "94089"\n}' $ipInfo = json_decode($result, true); echo $ipInfo['country'];

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.4.260.0230.04018.84
5.4.250.0170.07318.65
5.4.240.0070.05318.75
5.4.230.0200.06718.84
5.4.220.0030.05718.99
5.4.210.0070.05718.96
5.4.200.0130.05319.09
5.4.190.0130.07319.09
5.4.180.0170.04318.74
5.4.170.0130.04718.93
5.4.160.0030.05718.93
5.4.150.0130.05019.04
5.4.140.0130.05016.55
5.4.130.0100.04716.44
5.4.120.0070.05316.39
5.4.110.0070.05016.41
5.4.100.0070.05016.47
5.4.90.0100.05016.52
5.4.80.0100.05716.47
5.4.70.0270.05316.63
5.4.60.0170.06716.55
5.4.50.0130.04716.54
5.4.40.0030.05316.51
5.4.30.0070.06316.36
5.4.20.0100.06316.38
5.4.10.0100.05016.30
5.4.00.0070.05015.83
5.3.280.0170.05714.43
5.3.270.0170.07014.52
5.3.260.0100.05014.63
5.3.250.0130.05014.70
5.3.240.0170.04314.61
5.3.230.0070.05314.61
5.3.220.0070.05314.42
5.3.210.0130.07314.59
5.3.200.0030.05314.72
5.3.190.0030.05714.59
5.3.180.0130.07014.66
5.3.170.0070.05014.58
5.3.160.0070.05314.57
5.3.150.0070.05314.57
5.3.140.0200.03714.57
5.3.130.0170.07014.25
5.3.120.0070.07314.55
5.3.110.0030.05314.32
5.3.100.0030.05314.13
5.3.90.0100.04313.72
5.3.80.0130.04313.89
5.3.70.0030.05713.91
5.3.60.0100.04713.77
5.3.50.0000.07313.96
5.3.40.0030.05313.80
5.3.30.0070.07313.96
5.3.20.0030.05013.71
5.3.10.0170.05013.66
5.3.00.0070.05013.70
5.2.170.0000.04711.15
5.2.160.0170.04711.02
5.2.150.0100.03710.89
5.2.140.0130.03711.04
5.2.130.0030.04311.11
5.2.120.0000.04310.93
5.2.110.0030.05711.00
5.2.100.0030.04011.01
5.2.90.0070.04711.00
5.2.80.0170.04310.86
5.2.70.0130.04310.97
5.2.60.0100.05311.07
5.2.50.0030.06310.93
5.2.40.0170.05311.15
5.2.30.0070.05711.12
5.2.20.0100.03711.05
5.2.10.0030.04710.92
5.2.00.0030.05710.63
5.1.60.0170.0239.90
5.1.50.0070.04710.08
5.1.40.0070.0339.83
5.1.30.0030.03710.55
5.1.20.0070.04010.29
5.1.10.0030.03710.03
5.1.00.0070.03310.15
5.0.50.0030.0278.50
5.0.40.0070.0308.46
5.0.30.0070.0578.37
5.0.20.0000.0308.19
5.0.10.0000.0338.21
5.0.00.0030.0438.23
4.4.90.0030.0276.85
4.4.80.0030.0206.85
4.4.70.0030.0206.85
4.4.60.0030.0306.85
4.4.50.0130.0236.85
4.4.40.0030.0436.85
4.4.30.0030.0276.85
4.4.20.0030.0306.85
4.4.10.0000.0276.85
4.4.00.0030.0336.85
4.3.110.0100.0176.85
4.3.100.0070.0176.85
4.3.90.0070.0176.85
4.3.80.0030.0336.85
4.3.70.0070.0236.85
4.3.60.0070.0206.85
4.3.50.0070.0276.85
4.3.40.0000.0436.85
4.3.30.0030.0206.85
4.3.20.0070.0206.85
4.3.10.0030.0206.84
4.3.00.0070.0209.30

preferences:
149.96 ms | 1394 KiB | 7 Q