3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$homepage = FILE_GET_CONTENTS('WWW.ROGERS.COM'); = 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"); } $revrogers = strrev($rogers); echo($revrogers); $pos = strpos($rogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } echo($pos);

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.0100.05720.39
5.5.240.0030.03720.26
5.4.400.0900.04318.82
5.4.390.0630.05718.79
5.4.380.0470.06318.79
5.4.370.0630.04718.46
5.4.360.0500.04018.61
5.4.350.0630.05718.59
5.4.340.0470.05018.77
5.4.320.0730.05318.58
5.4.310.0470.06718.50
5.4.300.0770.06318.52
5.4.290.1000.04718.84
5.4.280.0300.05718.77
5.4.270.0570.05318.80
5.4.260.0730.05718.63
5.4.250.0470.06018.62
5.4.240.0470.06718.77
5.4.230.0700.05718.57
5.4.220.0770.06018.71
5.4.210.0630.05318.57
5.4.200.0800.05016.52
5.4.190.0630.07018.82
5.4.180.0430.06018.70
5.4.170.0630.06318.76
5.4.160.0670.07718.61
5.4.150.0630.04718.69
5.4.140.0870.04316.32
5.4.130.0570.05316.32
5.4.120.0430.05016.21
5.4.110.0530.05316.41
5.4.100.0600.05716.18
5.4.90.0600.05716.32
5.4.80.0700.05316.30
5.4.70.0630.05716.22
5.4.60.0630.05316.16
5.4.50.0870.05716.26
5.4.40.0500.05316.22
5.4.30.0600.04716.38
5.4.20.0670.05716.21
5.4.10.0670.05016.22
5.4.00.0700.04715.72
5.3.290.0670.06014.58
5.3.280.0800.05714.51
5.3.270.0670.05314.50
5.3.260.0630.06314.59
5.3.250.0500.06314.55
5.3.240.0570.05314.61
5.3.230.0800.05314.50
5.3.220.0500.05314.56
5.3.210.0530.06714.61
5.3.200.0370.06314.62
5.3.190.0700.05714.67
5.3.180.0600.05714.46
5.3.170.0670.05314.53
5.3.160.0670.05714.60
5.3.150.0670.05314.57
5.3.140.0600.05314.58
5.3.130.0300.06714.50
5.3.120.0730.05014.44
5.3.110.0530.05314.60
5.3.100.0630.06013.97
5.3.90.0500.07713.95
5.3.80.0730.04714.00
5.3.70.0570.06713.93
5.3.60.0630.05013.98
5.3.50.0870.05313.86
5.3.40.0570.06013.88
5.3.30.0530.05313.82
5.3.20.0700.04013.78
5.3.10.0700.04313.66
5.3.00.0570.05313.61
5.2.170.0770.04311.10
5.2.160.0570.05311.11
5.2.150.0430.06711.10
5.2.140.0670.06011.09
5.2.130.0630.03711.05
5.2.120.0700.03011.14
5.2.110.0430.04311.13
5.2.100.0570.03311.09
5.2.90.0500.04311.07
5.2.80.0570.03011.16
5.2.70.0400.05011.09
5.2.60.0630.04011.10
5.2.50.0430.04310.97
5.2.40.0370.04311.07
5.2.30.0300.04010.96
5.2.20.0430.04310.92
5.2.10.0330.04710.97
5.2.00.0400.04010.78
5.1.60.0570.02310.12
5.1.50.0200.0439.96
5.1.40.0500.0379.99
5.1.30.0470.04010.29
5.1.20.0570.04710.41
5.1.10.0730.05010.10
5.1.00.0570.04710.13
5.0.50.0170.0438.67
5.0.40.0370.0338.44
5.0.30.0330.0538.24
5.0.20.0270.0378.23
5.0.10.0230.0408.15
5.0.00.0270.0508.17
4.4.90.0300.0306.69
4.4.80.0230.0336.69
4.4.70.0300.0306.69
4.4.60.0270.0236.69
4.4.50.0100.0436.69
4.4.40.0300.0476.69
4.4.30.0330.0236.69
4.4.20.0100.0276.69
4.4.10.0270.0206.69
4.4.00.0130.0476.69
4.3.110.0200.0206.69
4.3.100.0170.0276.69
4.3.90.0330.0176.69
4.3.80.0170.0406.69
4.3.70.0370.0176.69
4.3.60.0230.0306.69
4.3.50.0170.0176.69
4.3.40.0270.0336.69
4.3.30.0030.0276.69
4.3.20.0170.0236.69
4.3.10.0100.0236.69
4.3.00.0100.0206.82

preferences:
143.14 ms | 1394 KiB | 7 Q