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 = "tttttttt<a href=\"/business/BSS.portal?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr\">francais</a>tttttttttt"; echo($rogers); echo("\n"); $pos = strpos($rogers, "francais"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("\n"); $revrogers = strrev($rogers); echo($rogers); echo("\n"); echo($revrogers); /*$pos = strpos($revrogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } *///$rogers = substr($rogers, 0, $pos); //if(!$rogers){ // die("SUBSTR_ERROR"); //}

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.0150.00616.50
8.3.50.0100.00822.01
8.3.40.0110.00718.71
8.3.30.0090.00618.96
8.3.20.0000.00820.21
8.3.10.0050.00321.60
8.3.00.0080.00019.25
8.2.180.0110.01117.97
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0140.00326.16
8.2.120.0050.00319.23
8.2.110.0030.00619.41
8.2.100.0060.00617.75
8.2.90.0080.00019.13
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0080.00318.09
8.2.30.0040.00418.18
8.2.20.0040.00417.68
8.2.10.0040.00418.23
8.2.00.0070.00017.75
8.1.280.0140.00725.92
8.1.270.0050.00520.65
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0120.00018.79
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0050.00517.13
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0000.00820.38
8.1.160.0000.00721.93
8.1.150.0040.00418.89
8.1.140.0040.00417.42
8.1.130.0030.00317.83
8.1.120.0070.00017.52
8.1.110.0000.00817.47
8.1.100.0040.00417.34
8.1.90.0030.00517.49
8.1.80.0000.00817.36
8.1.70.0030.00317.46
8.1.60.0000.00817.44
8.1.50.0030.00517.43
8.1.40.0030.00517.47
8.1.30.0050.00317.64
8.1.20.0040.00417.59
8.1.10.0000.00717.50
8.1.00.0000.00717.34
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0040.00418.48
8.0.270.0030.00317.22
8.0.260.0030.00317.23
8.0.250.0000.00716.96
8.0.240.0040.00416.86
8.0.230.0030.00316.94
8.0.220.0050.00316.91
8.0.210.0000.00716.79
8.0.200.0040.00416.86
8.0.190.0000.00716.98
8.0.180.0040.00416.85
8.0.170.0000.00716.80
8.0.160.0030.00316.88
8.0.150.0040.00316.73
8.0.140.0000.00716.86
8.0.130.0030.00313.41
8.0.120.0040.00416.78
8.0.110.0040.00416.92
8.0.100.0000.00716.96
8.0.90.0000.00816.72
8.0.80.0120.00316.90
8.0.70.0050.00316.96
8.0.60.0000.00717.02
8.0.50.0000.00816.69
8.0.30.0120.00917.17
8.0.20.0120.00817.40
8.0.10.0000.00716.87
8.0.00.0140.00916.70
7.4.330.0000.00515.06
7.4.320.0060.00016.56
7.4.300.0030.00316.55
7.4.290.0000.00716.59
7.4.280.0030.00616.58
7.4.270.0070.00016.52
7.4.260.0070.00016.47
7.4.250.0070.00016.46
7.4.240.0030.00516.60
7.4.230.0070.00016.41
7.4.220.0090.00916.47
7.4.210.0120.00316.62
7.4.200.0000.00816.54
7.4.160.0040.01116.34
7.4.150.0130.00317.40
7.4.140.0120.00817.86
7.4.130.0090.00916.59
7.4.120.0090.00916.47
7.4.110.0090.00916.38
7.4.100.0120.00616.66
7.4.90.0140.00916.46
7.4.80.0180.00419.39
7.4.70.0040.01416.63
7.4.60.0080.00816.35
7.4.50.0040.00416.57
7.4.40.0080.00816.31
7.4.30.0060.01116.40
7.4.00.0120.00314.70
7.3.330.0000.00613.21
7.3.320.0150.00013.18
7.3.310.0070.00016.35
7.3.300.0000.00616.12
7.3.290.0060.00916.27
7.3.280.0080.00916.33
7.3.270.0130.00917.40
7.3.260.0140.00416.43
7.3.250.0090.00916.41
7.3.240.0100.00716.36
7.3.230.0070.01016.39
7.3.210.0100.01016.26
7.3.200.0130.00719.39
7.3.190.0130.00716.29
7.3.180.0030.01316.32
7.3.170.0130.00916.33
7.3.160.0130.00316.54
7.2.330.0040.01416.57
7.2.320.0110.00616.60
7.2.310.0110.01116.41
7.2.300.0120.00416.44
7.2.290.0040.01816.62
7.2.00.0070.01019.38
7.1.100.0060.00918.16
7.1.70.0050.00516.95
7.1.60.0100.01619.50
7.1.50.0170.00316.88
7.1.00.0000.07322.40
7.0.200.0310.00415.10
7.0.140.0030.07322.00
7.0.60.0070.08019.89
7.0.50.0000.06717.80
7.0.40.0030.07720.02
7.0.30.0370.07020.18
7.0.20.0200.04020.21
7.0.10.0000.08320.12
7.0.00.0170.07020.09
5.6.280.0070.06720.81
5.6.210.0070.03720.55
5.6.200.0030.04318.13
5.6.190.0100.07020.64
5.6.180.0030.04720.32
5.6.170.0300.05720.50
5.6.160.0100.07320.43
5.6.150.0070.07018.18
5.6.140.0070.06718.16
5.6.130.0070.08018.12
5.6.120.0070.05320.96
5.6.110.0070.06020.95
5.6.100.0100.08021.11
5.6.90.0030.04021.10
5.6.80.0100.04320.48
5.5.350.3700.04320.43
5.5.340.0030.04717.92
5.5.330.0100.08320.25
5.5.320.0200.04020.28
5.5.310.0330.07020.46
5.5.300.0030.04317.94
5.5.290.0070.08018.02
5.5.280.0030.04320.98
5.5.270.0070.08320.77
5.5.260.0130.08020.76
5.5.250.0170.07720.57
5.5.240.0330.07020.32
5.4.450.0170.05319.24
5.4.440.0130.05319.34
5.4.430.0870.05719.48
5.4.420.0830.05319.41
5.4.410.0730.06019.42
5.4.400.0200.06318.75
5.4.390.0100.08018.66
5.4.380.0200.07718.74
5.4.370.0170.06018.65
5.4.360.0270.05018.49
5.4.350.0400.05718.50
5.4.340.0230.05718.62
5.4.320.0170.06018.64
5.4.310.0300.06018.68
5.4.300.0170.06018.73
5.4.290.0200.05318.50
5.4.280.0200.06318.49
5.4.270.0200.05318.60
5.4.260.0130.06718.63
5.4.250.0270.06318.46
5.4.240.0200.07318.58
5.4.230.0230.05318.72
5.4.220.0270.04718.55
5.4.210.0170.05718.49
5.4.200.0270.06016.65
5.4.190.0230.05318.76
5.4.180.0230.05318.48
5.4.170.0170.06718.54
5.4.160.0230.06318.69
5.4.150.0200.05318.70
5.4.140.0130.05716.09
5.4.130.0200.07016.20
5.4.120.0230.06716.05
5.4.110.0170.05716.14
5.4.100.0300.06316.16
5.4.90.0370.05716.16
5.4.80.0270.04716.12
5.4.70.0130.06016.09
5.4.60.0230.06016.19
5.4.50.0200.04316.27
5.4.40.0130.05716.21
5.4.30.0200.05016.21
5.4.20.0300.04016.11
5.4.10.0330.06016.14
5.4.00.0300.06315.71
5.3.290.0230.05314.64
5.3.280.0270.05014.54
5.3.270.0170.07014.60
5.3.260.0130.06014.54
5.3.250.0230.05314.70
5.3.240.0230.04714.55
5.3.230.0030.07314.60
5.3.220.0200.05314.56
5.3.210.0230.05014.56
5.3.200.0330.05714.54
5.3.190.0170.05714.64
5.3.180.0300.05014.59
5.3.170.0170.05714.59
5.3.160.0130.05714.47
5.3.150.0370.05714.47
5.3.140.0170.06014.51
5.3.130.0170.06014.49
5.3.120.0170.05714.55
5.3.110.0200.06714.49
5.3.100.0330.04014.13
5.3.90.0300.05714.02
5.3.80.0270.04713.96
5.3.70.0270.04713.97
5.3.60.0100.06013.91
5.3.50.0300.04313.91
5.3.40.0170.05313.93
5.3.30.0130.05013.80
5.3.20.0200.05013.74
5.3.10.0130.06313.55
5.3.00.0170.07013.63
5.2.170.0230.04311.21
5.2.160.0230.05011.13
5.2.150.0230.05011.13
5.2.140.0170.04011.19
5.2.130.0230.03311.11
5.2.120.0130.05011.23
5.2.110.0200.04711.16
5.2.100.0070.05011.11
5.2.90.0170.04011.04
5.2.80.0200.03711.05
5.2.70.0200.04011.06
5.2.60.0130.04310.96
5.2.50.0100.04711.01
5.2.40.0130.04310.96
5.2.30.0200.05011.02
5.2.20.0200.03710.91
5.2.10.0230.04710.82
5.2.00.0200.04010.85
5.1.60.0130.03710.03
5.1.50.0230.0439.95
5.1.40.0270.03310.09
5.1.30.0130.05310.31
5.1.20.0130.05310.34
5.1.10.0130.05010.08
5.1.00.0130.03710.17
5.0.50.0130.0308.66
5.0.40.0070.0308.53
5.0.30.0100.0408.27
5.0.20.0170.0278.30
5.0.10.0070.0338.24
5.0.00.0100.0438.15
4.4.90.0100.0206.80
4.4.80.0030.0276.80
4.4.70.0000.0306.80
4.4.60.0070.0276.80
4.4.50.0070.0306.80
4.4.40.0030.0436.80
4.4.30.0100.0176.80
4.4.20.0130.0206.80
4.4.10.0100.0236.80
4.4.00.0130.0306.80
4.3.110.0030.0276.80
4.3.100.0100.0206.80
4.3.90.0070.0206.80
4.3.80.0100.0376.80
4.3.70.0030.0306.80
4.3.60.0100.0176.80
4.3.50.0070.0236.80
4.3.40.0030.0376.80
4.3.30.0030.0236.80
4.3.20.0000.0276.80
4.3.10.0070.0206.80
4.3.00.0030.0206.82

preferences:
45.39 ms | 401 KiB | 5 Q