3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowedIps = ['a' => '123.123.123.123']; if (in_array('123.123.123.123', array_merge($allowedIps, array('127.0.0.1', 'fe80::1', '::1'))) { echo 'OK'; }

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.340.1800.03319.11
5.4.320.2000.05019.04
5.4.310.2130.03719.03
5.4.300.1800.04319.08
5.4.290.1830.03719.09
5.4.280.1900.03019.09
5.4.270.1730.04318.91
5.4.260.2070.04019.05
5.4.250.1800.03719.09
5.4.240.1830.03318.83
5.4.230.1770.04018.87
5.4.220.1830.03719.16
5.4.210.2170.04019.22
5.4.200.2070.04018.97
5.4.190.2100.04319.21
5.4.180.1830.03719.21
5.4.170.2070.04319.20
5.4.160.1870.03719.07
5.4.150.2330.04318.97
5.4.140.1800.04016.36
5.4.130.2000.03716.66
5.4.120.1970.03716.46
5.4.110.2230.04016.39
5.4.100.2230.03716.37
5.4.90.2000.04016.59
5.4.80.1800.03016.44
5.4.70.2000.04716.52
5.4.60.0230.04016.48
5.4.50.0230.06316.42
5.4.40.0200.07716.54
5.4.30.0330.02716.57
5.4.20.0170.04316.41
5.4.10.0200.05316.42
5.4.00.0270.06315.80
5.3.290.0170.07314.51
5.3.280.0300.05014.43
5.3.270.0170.07714.46
5.3.260.0170.06014.48
5.3.250.0200.06314.45
5.3.240.0230.07314.52
5.3.230.0130.04014.55
5.3.220.0170.06314.42
5.3.210.0200.04014.63
5.3.200.0130.04714.43
5.3.190.0100.04714.59
5.3.180.0100.04014.55
5.3.170.0230.06014.43
5.3.160.0200.06014.55
5.3.150.0270.05714.55
5.3.140.0270.03314.51
5.3.130.0230.07314.54
5.3.120.0330.07014.50
5.3.110.0370.06314.53
5.3.100.0230.04713.90
5.3.90.0200.07313.97
5.3.80.0230.03713.81
5.3.70.0230.07013.96
5.3.60.0230.06313.80
5.3.50.0270.04013.72
5.3.40.0230.06713.78
5.3.30.0400.05313.86
5.3.20.0230.05313.64
5.3.10.0270.06313.72
5.3.00.0630.07013.54
5.2.170.0230.03012.57
5.2.160.0130.03012.57
5.2.150.0200.03712.57
5.2.140.0430.02712.57
5.2.130.0230.03312.57
5.2.120.0170.03712.57
5.2.110.0230.03012.57
5.2.100.0170.03712.57
5.2.90.0230.05712.57
5.2.80.0200.06012.57
5.2.70.0230.04312.57
5.2.60.0200.03712.57
5.2.50.0130.03312.57
5.2.40.0130.02712.57
5.2.30.0230.05012.57
5.2.20.0130.04012.57
5.2.10.0200.06012.57
5.2.00.0230.02012.57
5.1.60.0230.04712.57
5.1.50.0100.05012.57
5.1.40.0270.05012.57
5.1.30.0170.02712.57
5.1.20.0200.05312.57
5.1.10.0130.04012.57
5.1.00.0330.03012.57
5.0.50.0070.04712.57
5.0.40.0030.03312.57
5.0.30.0070.03712.57
5.0.20.0030.02312.57
5.0.10.0070.04312.57
5.0.00.0300.05012.57
4.4.90.0100.02012.57
4.4.80.0100.01712.57
4.4.70.0070.03312.57
4.4.60.0070.02012.57
4.4.50.0100.01312.57
4.4.40.0070.02712.57
4.4.30.0130.01012.57
4.4.20.0070.01712.57
4.4.10.0400.02312.57
4.4.00.0070.03712.57
4.3.110.0070.03312.57
4.3.100.0100.02012.57
4.3.90.0100.03312.57
4.3.80.0100.05012.57
4.3.70.0100.01712.57
4.3.60.0100.03312.57
4.3.50.0100.03012.57
4.3.40.0170.03712.57
4.3.30.0070.02712.57
4.3.20.0030.03712.57
4.3.10.0070.02712.57
4.3.00.0070.02012.57

preferences:
140.65 ms | 1394 KiB | 7 Q