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 = "https://www.rogers.com/business/BSS.portal;RBSSSESSIONID=1DcAeOweynqBxPoLwsY1R2RLFnRagdzM2gur1P8lx6sU6nD8O5zF!2064802681?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=frfrancais"; $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/n<br>"); $revrogers = strrev($rogers); echo($revrogers); $pos = strpos($rogers, "FRANCAIS");

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)
8.3.60.0080.00616.50
8.3.50.0120.00922.00
8.3.40.0160.00018.71
8.3.30.0090.00619.02
8.3.20.0080.00020.24
8.3.10.0030.01121.90
8.3.00.0080.00019.13
8.2.180.0150.00618.17
8.2.170.0090.00518.79
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0000.00724.66
8.2.130.0140.00326.16
8.2.120.0000.00819.24
8.2.110.0090.00019.37
8.2.100.0040.00817.63
8.2.90.0040.00419.08
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0000.00817.68
8.2.50.0090.00018.07
8.2.40.0030.00518.22
8.2.30.0050.00318.07
8.2.20.0050.00317.76
8.2.10.0040.00418.12
8.2.00.0000.00817.82
8.1.280.0030.01225.92
8.1.270.0060.01318.92
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00023.87
8.1.230.0150.00017.42
8.1.220.0040.00417.88
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0060.00317.36
8.1.180.0000.00718.10
8.1.170.0050.00320.49
8.1.160.0000.00722.02
8.1.150.0070.00018.92
8.1.140.0000.00717.51
8.1.130.0030.00317.45
8.1.120.0040.00417.51
8.1.110.0000.00817.52
8.1.100.0000.00717.46
8.1.90.0030.00317.43
8.1.80.0070.00017.50
8.1.70.0070.00017.38
8.1.60.0050.00317.47
8.1.50.0050.00317.50
8.1.40.0000.00717.42
8.1.30.0030.00617.54
8.1.20.0040.00417.63
8.1.10.0000.00717.53
8.1.00.0000.00817.46
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.41
8.0.270.0070.00016.70
8.0.260.0030.00316.83
8.0.250.0000.00716.87
8.0.240.0030.00316.96
8.0.230.0000.00716.88
8.0.220.0040.00416.80
8.0.210.0000.00716.86
8.0.200.0040.00416.96
8.0.190.0000.00716.95
8.0.180.0070.00016.95
8.0.170.0030.00516.87
8.0.160.0070.00016.88
8.0.150.0070.00016.73
8.0.140.0000.00716.86
8.0.130.0000.00513.34
8.0.120.0040.00416.72
8.0.110.0050.00316.84
8.0.100.0070.00016.75
8.0.90.0040.00416.79
8.0.80.0100.01016.93
8.0.70.0040.00416.78
8.0.60.0040.00416.87
8.0.50.0020.00516.87
8.0.30.0090.01417.26
8.0.20.0110.00717.40
8.0.10.0030.00516.89
8.0.00.0080.01016.66
7.4.330.0050.00015.14
7.4.320.0070.00016.42
7.4.300.0030.00316.63
7.4.290.0030.00516.63
7.4.280.0070.00016.53
7.4.270.0070.00016.52
7.4.260.0000.00716.39
7.4.250.0000.00716.50
7.4.240.0060.00216.54
7.4.230.0030.00316.41
7.4.220.0070.01316.46
7.4.210.0130.00716.63
7.4.200.0000.00716.37
7.4.160.0130.00316.46
7.4.150.0120.00617.40
7.4.140.0080.00917.86
7.4.130.0140.00616.54
7.4.120.0100.00916.37
7.4.110.0110.00716.58
7.4.100.0170.00716.59
7.4.90.0060.01116.49
7.4.80.0120.00919.39
7.4.70.0060.01216.53
7.4.60.0180.00416.43
7.4.50.0000.00816.58
7.4.40.0090.01416.32
7.4.30.0160.00316.48
7.4.00.0040.00714.99
7.3.330.0030.00313.23
7.3.320.0000.01613.02
7.3.310.0030.00316.20
7.3.300.0030.00316.14
7.3.290.0070.00816.26
7.3.280.0100.00916.28
7.3.270.0100.00717.40
7.3.260.0040.02016.37
7.3.250.0100.00716.51
7.3.240.0240.00316.29
7.3.230.0170.00016.39
7.3.210.0070.01016.44
7.3.200.0090.00919.39
7.3.190.0150.00916.46
7.3.180.0040.01216.27
7.3.170.0100.00716.38
7.3.160.0070.01016.61
7.2.330.0100.01016.50
7.2.320.0030.01316.38
7.2.310.0090.00916.65
7.2.300.0090.00816.54
7.2.290.0230.00016.70
7.2.00.0070.01019.38
7.1.100.0000.01118.05
7.1.70.0060.00316.86
7.1.60.0070.01519.50
7.1.50.0090.01216.88
7.1.00.0070.07322.46
7.0.200.0740.00714.90
7.0.140.0030.07322.09
7.0.60.0130.08019.99
7.0.50.0130.07717.79
7.0.40.0030.09720.02
7.0.30.0330.07720.01
7.0.20.0370.07020.02
7.0.10.0330.06320.17
7.0.00.0000.09020.00
5.6.280.0030.07320.76
5.6.210.0030.08720.49
5.6.200.0100.08718.22
5.6.190.0030.04720.39
5.6.180.0430.03720.58
5.6.170.0300.08320.47
5.6.160.0000.05720.54
5.6.150.0000.06018.21
5.6.140.0000.04318.22
5.6.130.0030.07718.22
5.6.120.0170.07721.01
5.6.110.0100.06721.09
5.6.100.0170.07020.97
5.6.90.0170.05320.95
5.6.80.0070.07320.53
5.6.70.0170.06720.39
5.5.350.0270.03320.34
5.5.340.0070.08018.02
5.5.330.0030.04720.25
5.5.320.0070.06720.40
5.5.310.0400.05720.17
5.5.300.0000.09017.91
5.5.290.0030.08717.88
5.5.280.0070.08720.89
5.5.270.0200.06020.97
5.5.260.0100.05720.95
5.5.250.0070.07720.66
5.5.240.0030.07320.12
5.4.450.0570.05319.64
5.4.440.0930.06319.46
5.4.430.0670.05719.47
5.4.420.1170.06719.47
5.4.410.0070.06019.19
5.4.400.0130.05718.82
5.4.390.0100.06018.74
5.4.380.0200.05318.72
5.4.370.0230.04718.71
5.4.360.0130.06018.54
5.4.350.0200.05318.74
5.4.340.0230.05018.61
5.4.320.0200.05718.73
5.4.310.0170.06018.52
5.4.300.0170.05718.73
5.4.290.0200.05318.46
5.4.280.0100.07018.77
5.4.270.0170.05718.73
5.4.260.0230.05018.55
5.4.250.0200.06018.68
5.4.240.0270.05018.50
5.4.230.0170.06318.64
5.4.220.0230.05018.55
5.4.210.0200.06318.64
5.4.200.0230.04716.56
5.4.190.0300.04318.76
5.4.180.0270.04718.70
5.4.170.0200.05318.48
5.4.160.0100.06018.52
5.4.150.0170.05718.70
5.4.140.0100.07316.26
5.4.130.0170.05016.07
5.4.120.0170.05316.07
5.4.110.0170.05016.04
5.4.100.0130.05316.14
5.4.90.0230.04716.16
5.4.80.0100.06016.29
5.4.70.0300.04016.04
5.4.60.0270.04016.09
5.4.50.0170.05016.15
5.4.40.0200.05016.22
5.4.30.0130.05716.08
5.4.20.0130.05716.22
5.4.10.0070.06016.00
5.4.00.0130.05015.57
5.3.290.0200.05314.75
5.3.280.0230.07314.69
5.3.270.0330.04314.69
5.3.260.0200.05314.59
5.3.250.0070.06714.50
5.3.240.0200.05314.70
5.3.230.0270.04714.50
5.3.220.0300.04014.56
5.3.210.0370.04314.66
5.3.200.0200.05014.56
5.3.190.0170.05314.54
5.3.180.0230.04714.55
5.3.170.0170.05014.56
5.3.160.0300.04014.47
5.3.150.0130.05714.52
5.3.140.0370.05014.47
5.3.130.0170.05714.54
5.3.120.0200.05714.55
5.3.110.0200.05714.59
5.3.100.0170.05014.00
5.3.90.0330.03714.04
5.3.80.0200.05014.05
5.3.70.0330.04314.11
5.3.60.0230.04713.91
5.3.50.0070.06013.86
5.3.40.0130.05314.04
5.3.30.0200.05013.85
5.3.20.0230.04313.72
5.3.10.0170.05013.58
5.3.00.0170.05013.67
5.2.170.0270.03011.10
5.2.160.0200.03711.29
5.2.150.0130.04311.20
5.2.140.0170.03711.05
5.2.130.0070.05011.14
5.2.120.0170.03711.01
5.2.110.0200.03711.14
5.2.100.0200.03311.09
5.2.90.0230.03011.03
5.2.80.0130.04311.15
5.2.70.0230.03311.25
5.2.60.0130.04310.98
5.2.50.0230.03310.98
5.2.40.0170.04011.05
5.2.30.0200.03711.12
5.2.20.0130.04010.89
5.2.10.0270.04310.95
5.2.00.0170.03710.71
5.1.60.0130.03310.06
5.1.50.0170.03310.00
5.1.40.0170.03310.04
5.1.30.0200.04010.47
5.1.20.0100.04010.40
5.1.10.0070.04010.13
5.1.00.0130.03310.13
5.0.50.0100.0278.56
5.0.40.0070.0308.42
5.0.30.0100.0408.34
5.0.20.0100.0238.32
5.0.10.0070.0338.30
5.0.00.0070.0438.36
4.4.90.0100.0206.56
4.4.80.0030.0236.56
4.4.70.0000.0306.56
4.4.60.0030.0276.56
4.4.50.0170.0136.56
4.4.40.0100.0376.56
4.4.30.0070.0206.56
4.4.20.0070.0276.56
4.4.10.0100.0206.56
4.4.00.0100.0306.56
4.3.110.0070.0236.56
4.3.100.0030.0236.56
4.3.90.0070.0206.56
4.3.80.0070.0336.56
4.3.70.0070.0206.56
4.3.60.0030.0236.56
4.3.50.0100.0176.56
4.3.40.0070.0336.56
4.3.30.0030.0236.56
4.3.20.0070.0206.56
4.3.10.0030.0236.56
4.3.00.0100.0206.82

preferences:
80.66 ms | 401 KiB | 5 Q