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.3630.02718.96
5.4.320.3870.03319.10
5.4.310.3530.03719.20
5.4.300.4430.04319.18
5.4.290.4470.04019.04
5.4.280.4400.04019.24
5.4.270.3670.04019.15
5.4.260.3630.03319.15
5.4.250.3600.03318.95
5.4.240.4370.03319.16
5.4.230.3970.04019.14
5.4.220.3900.04318.95
5.4.210.3930.03319.12
5.4.200.4070.03718.96
5.4.190.3800.03019.14
5.4.180.4100.04319.18
5.4.170.3830.04019.03
5.4.160.3970.03718.90
5.4.150.4170.04719.04
5.4.140.3930.03716.49
5.4.130.4000.04016.41
5.4.120.4000.03716.54
5.4.110.4130.02716.45
5.4.100.3700.03716.52
5.4.90.3570.03716.57
5.4.80.3770.03016.44
5.4.70.3800.03716.43
5.4.60.3370.03316.54
5.4.50.2600.03716.45
5.4.40.3170.03316.46
5.4.30.2630.03316.32
5.4.20.3330.04316.38
5.4.10.2270.02716.30
5.4.00.3070.04015.80
5.3.290.3830.03314.61
5.3.280.3670.03714.54
5.3.270.4030.05314.53
5.3.260.3800.02714.42
5.3.250.3730.04014.55
5.3.240.4200.02714.55
5.3.230.3800.02714.39
5.3.220.3930.03314.44
5.3.210.4170.04014.36
5.3.200.4270.04314.55
5.3.190.3500.03714.46
5.3.180.3770.03014.46
5.3.170.3600.04014.50
5.3.160.3170.04014.52
5.3.150.3170.03314.50
5.3.140.2670.03014.51
5.3.130.3330.03314.38
5.3.120.2570.03314.48
5.3.110.2970.03714.48
5.3.100.3230.03714.05
5.3.90.3570.03713.96
5.3.80.4070.03014.03
5.3.70.3870.02713.95
5.3.60.3730.03313.82
5.3.50.3500.02713.88
5.3.40.0000.08013.78
5.3.30.1070.05713.84
5.3.20.3800.06013.63
5.3.10.3570.03313.75
5.3.00.3370.03313.58
5.2.170.3030.02711.02
5.2.160.0000.06711.13
5.2.150.0070.04011.13
5.2.140.3870.03011.23
5.2.130.3230.03011.09
5.2.120.2730.03010.92
5.2.110.3270.03011.04
5.2.100.3230.02711.00
5.2.90.3130.02310.95
5.2.80.3500.02710.96
5.2.70.3370.03011.02
5.2.60.3330.01711.05
5.2.50.3600.02710.94
5.2.40.2870.02710.92
5.2.30.3030.03010.95
5.2.20.3070.03010.93
5.2.10.3130.03010.87
5.2.00.3130.03310.72
5.1.60.3130.02010.01
5.1.50.0030.02310.07
5.1.40.0070.0339.93
5.1.30.0030.05710.37
5.1.20.0100.04710.35
5.1.10.2800.02710.14
5.1.00.3200.02310.08
5.0.50.1700.0178.39
5.0.40.1530.0178.37
5.0.30.1800.0308.21
5.0.20.0830.0178.21
5.0.10.1770.0208.32
5.0.00.1800.0308.05
4.4.90.1300.0135.81
4.4.80.1530.0175.76
4.4.70.1700.0135.82
4.4.60.1470.0135.79
4.4.50.1800.0135.82
4.4.40.0930.0275.79
4.4.30.0030.0275.82
4.4.20.0000.0405.85
4.4.10.1770.0175.90
4.4.00.1800.0305.93
4.3.110.1730.0175.72
4.3.100.1370.0175.75
4.3.90.1400.0175.83
4.3.80.1430.0275.74
4.3.70.1400.0175.74
4.3.60.1430.0175.78
4.3.50.1870.0135.70
4.3.40.1630.0275.73
4.3.30.0700.0105.43
4.3.20.0670.0205.43
4.3.10.0770.0275.43
4.3.00.0670.0135.43

preferences:
134.97 ms | 1394 KiB | 7 Q