3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$HOMEPAGE = FILE_GET_CONTENTS('WWW.ROGERS.COM'); $homepage = true; if(!$homepage){ die("FILE_GET_CONTENTS_ERROR"); } $rogers = "<a href="/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr\">francais</a>"; $pos = strpos($rogers, "francais"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("\n\r"); $revrogers = strrev($rogers); echo($revrogers); $pos = strpos($rogers, "a>");

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.6.80.0130.07320.48
5.5.240.0070.06020.13
5.4.400.0800.05718.82
5.4.390.0870.04718.59
5.4.380.0830.05718.84
5.4.370.0970.05018.74
5.4.360.1200.05718.63
5.4.350.1030.05318.63
5.4.340.0830.06018.56
5.4.320.0930.05318.52
5.4.310.0870.05718.46
5.4.300.0900.05018.69
5.4.290.1030.03718.79
5.4.280.1100.04318.55
5.4.270.0930.06018.68
5.4.260.0930.05718.61
5.4.250.0970.05318.62
5.4.240.0870.05718.77
5.4.230.0600.06018.52
5.4.220.0830.05018.62
5.4.210.0830.05318.51
5.4.200.0670.06016.80
5.4.190.1030.08018.45
5.4.180.0900.05318.77
5.4.170.0900.05318.61
5.4.160.1030.05318.68
5.4.150.1000.06318.54
5.4.140.0700.05716.43
5.4.130.0530.06016.23
5.4.120.0530.06716.20
5.4.110.0670.06316.23
5.4.100.0800.05316.20
5.4.90.0900.05016.20
5.4.80.0970.05716.41
5.4.70.1200.03716.24
5.4.60.0900.06016.26
5.4.50.1100.04716.39
5.4.40.0670.05316.25
5.4.30.0170.05316.22
5.4.20.0200.05016.22
5.4.10.0170.05316.13
5.4.00.0230.04315.71
5.3.290.0130.06014.57
5.3.280.0300.04714.49
5.3.270.0170.05714.59
5.3.260.0230.05714.68
5.3.250.0130.05714.64
5.3.240.0270.04714.52
5.3.230.0200.05714.69
5.3.220.0200.06714.52
5.3.210.0200.07714.66
5.3.200.0130.05714.56
5.3.190.0230.05714.62
5.3.180.0130.06314.54
5.3.170.0300.06314.65
5.3.160.0200.07014.53
5.3.150.0270.06714.66
5.3.140.0300.06314.53
5.3.130.0400.05714.55
5.3.120.0200.06314.44
5.3.110.0230.06714.64
5.3.100.0200.07014.05
5.3.90.0170.07314.00
5.3.80.0300.04314.00
5.3.70.0270.05014.11
5.3.60.0330.05313.94
5.3.50.0130.07014.03
5.3.40.0170.07014.04
5.3.30.0230.06013.98
5.3.20.0300.04713.64
5.3.10.0170.07013.57
5.3.00.0330.04013.62
5.2.170.0170.04311.14
5.2.160.0100.04711.12
5.2.150.0100.05011.20
5.2.140.0230.05311.20
5.2.130.0170.06011.24
5.2.120.0300.03711.02
5.2.110.0170.05011.15
5.2.100.0170.05711.16
5.2.90.0130.04011.06
5.2.80.0100.05011.13
5.2.70.0170.04311.05
5.2.60.0170.04711.03
5.2.50.0270.04310.97
5.2.40.0100.05711.03
5.2.30.0230.04311.11
5.2.20.0130.05711.09
5.2.10.0100.04010.96
5.2.00.0170.04310.71
5.1.60.0070.0409.95
5.1.50.0100.04010.01
5.1.40.0000.04710.04
5.1.30.0130.05310.41
5.1.20.0100.04310.34
5.1.10.0130.03310.14
5.1.00.0170.03310.11
5.0.50.0100.0378.53
5.0.40.0170.0308.43
5.0.30.0070.0638.29
5.0.20.0070.0408.21
5.0.10.0100.0308.15
5.0.00.0100.0438.34
4.4.90.0200.0136.56
4.4.80.0070.0236.56
4.4.70.0030.0236.56
4.4.60.0030.0236.56
4.4.50.0030.0236.56
4.4.40.0030.0406.56
4.4.30.0070.0236.56
4.4.20.0130.0276.56
4.4.10.0070.0276.56
4.4.00.0030.0376.56
4.3.110.0130.0136.56
4.3.100.0100.0236.56
4.3.90.0170.0136.56
4.3.80.0130.0376.56
4.3.70.0070.0276.56
4.3.60.0070.0276.56
4.3.50.0070.0306.56
4.3.40.0070.0336.56
4.3.30.0000.0336.56
4.3.20.0000.0306.56
4.3.10.0000.0236.56
4.3.00.0130.0206.82

preferences:
143.24 ms | 1394 KiB | 7 Q