3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(preg_match('/MSIE (.*?);/', "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)") || // This regex fails to detect IE 11 preg_match('/^(?=.*(Trident))(?=.*(rv:11.0)).*$/',"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)") { echo 'true'; } else { echo 'false'; }

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.0130.04718.84
5.4.250.0030.07719.01
5.4.240.0100.05018.95
5.4.230.0130.04718.80
5.4.220.0070.05318.84
5.4.210.0030.05718.94
5.4.200.0100.04718.90
5.4.190.0130.05018.65
5.4.180.0070.05018.80
5.4.170.0070.05718.79
5.4.160.0030.05318.79
5.4.150.0130.05018.73
5.4.140.0000.05716.39
5.4.130.0100.04716.55
5.4.120.0100.05316.54
5.4.110.0030.05716.48
5.4.100.0070.05016.55
5.4.90.0030.05316.62
5.4.80.0070.07316.45
5.4.70.0070.07316.50
5.4.60.0070.05016.65
5.4.50.0100.04716.59
5.4.40.0170.04016.52
5.4.30.0000.06716.45
5.4.20.0100.06316.45
5.4.10.0100.05016.45
5.4.00.0070.06015.78
5.3.280.0100.05714.46
5.3.270.0000.06014.70
5.3.260.0000.05714.30
5.3.250.0000.05714.62
5.3.240.0030.05314.62
5.3.230.0100.04714.47
5.3.220.0130.04314.49
5.3.210.0100.07314.66
5.3.200.0100.07014.58
5.3.190.0100.05714.58
5.3.180.0070.07014.62
5.3.170.0030.06014.72
5.3.160.0030.05314.56
5.3.150.0130.04714.27
5.3.140.0170.04714.56
5.3.130.0070.05314.41
5.3.120.0100.05314.24
5.3.110.0030.05714.58
5.3.100.0030.05313.92
5.3.90.0100.05314.04
5.3.80.0070.05013.88
5.3.70.0000.06714.12
5.3.60.0070.07314.02
5.3.50.0170.05713.96
5.3.40.0070.05313.89
5.3.30.0100.04314.06
5.3.20.0100.04713.63
5.3.10.0170.03713.54
5.3.00.0070.05313.56
5.2.170.0030.04311.03
5.2.160.0100.03711.15
5.2.150.0100.03711.06
5.2.140.0230.04311.07
5.2.130.0030.04011.11
5.2.120.0000.04311.19
5.2.110.0130.03010.98
5.2.100.0130.03011.00
5.2.90.0000.04311.11
5.2.80.0070.04011.09
5.2.70.0030.04310.99
5.2.60.0100.05711.06
5.2.50.0100.03310.93
5.2.40.0000.04310.91
5.2.30.0000.04311.12
5.2.20.0070.03711.07
5.2.10.0030.04010.69
5.2.00.0070.03710.70
5.1.60.0070.0309.88
5.1.50.0030.0339.93
5.1.40.0030.03710.04
5.1.30.0070.03310.27
5.1.20.0030.05310.43
5.1.10.0070.04010.16
5.1.00.0000.0409.84
5.0.50.0070.0278.69
5.0.40.0070.0278.36
5.0.30.0030.0408.28
5.0.20.0030.0238.28
5.0.10.0030.0278.11
5.0.00.0030.0408.10
4.4.90.0070.0206.46
4.4.80.0030.0206.46
4.4.70.0000.0236.46
4.4.60.0000.0236.46
4.4.50.0000.0236.46
4.4.40.0030.0336.46
4.4.30.0000.0236.46
4.4.20.0000.0336.46
4.4.10.0030.0236.46
4.4.00.0030.0436.46
4.3.110.0070.0176.46
4.3.100.0030.0206.46
4.3.90.0030.0206.46
4.3.80.0100.0376.46
4.3.70.0030.0206.46
4.3.60.0000.0306.46
4.3.50.0000.0236.46
4.3.40.0070.0376.46
4.3.30.0000.0236.46
4.3.20.0030.0236.46
4.3.10.0070.0236.46
4.3.00.0270.01314.47

preferences:
141.4 ms | 1394 KiB | 7 Q