3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ipString = 'ffff:heee:dddd:cccc:bbbb:aaaa:9999:8888'; $test = array(); preg_match_all("/(?U:[a-f0-9]+:?)+/", $ipString, $test); if(count($test) > 1 || count($test[0]) > 8){ echo false; }else{ if(implode(':', $test[0]) !== $ipString){ echo false; } } var_dump($test); var_dump($ipString); echo implode(':', $test[0]) echo true; ?>

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.5.80.0100.03319.21
5.5.70.0030.04019.56
5.5.60.0030.04319.51
5.5.50.0100.03319.21
5.5.40.0000.05019.46
5.5.30.0070.03719.32
5.5.20.0000.04719.46
5.5.10.0070.03719.32
5.5.00.0030.04019.50
5.4.240.0070.04019.20
5.4.230.0000.04018.85
5.4.220.0030.03719.20
5.4.210.0070.03319.14
5.4.200.0000.04019.23
5.4.190.0030.04718.84
5.4.180.0070.03319.07
5.4.170.0000.04018.91
5.4.160.0130.02719.09
5.4.150.0030.03719.06
5.4.140.0100.03016.43
5.4.130.0030.03316.41
5.4.120.0030.05316.37
5.4.110.0000.04016.39
5.4.100.0030.03316.30
5.4.90.0070.03716.42
5.4.80.0030.03316.26
5.4.70.0000.03716.66
5.4.60.0000.03716.51
5.4.50.0030.03316.62
5.4.40.0070.03016.27
5.4.30.0070.03016.69
5.4.20.0100.02716.40
5.4.10.0070.03016.50
5.4.00.0000.03715.82
5.3.280.0000.04014.49
5.3.270.0100.03014.53
5.3.260.0030.03714.55
5.3.250.0100.03014.54
5.3.240.0030.03714.54
5.3.230.0030.03714.55
5.3.220.0100.03014.66
5.3.210.0070.03314.50
5.3.200.0030.03714.51
5.3.190.0000.04014.50
5.3.180.0030.03714.50
5.3.170.0030.03714.49
5.3.160.0030.03714.53
5.3.150.0000.04014.54
5.3.140.0030.03314.49
5.3.130.0000.04014.48
5.3.120.0030.03714.59
5.3.110.0000.04014.43
5.3.100.0000.04013.94
5.3.90.0030.03314.04
5.3.80.0030.03713.95
5.3.70.0070.05013.97
5.3.60.0000.04013.95
5.3.50.0030.04013.89
5.3.40.0070.06014.04
5.3.30.0070.07013.89
5.3.20.0070.06713.66
5.3.10.0070.04313.45
5.3.00.0130.06313.46

preferences:
138.96 ms | 1394 KiB | 7 Q