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"); } $rogers = strrev($rogers); $pos = strpos($rogers, "a<"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } $rogers = strrev($rogers); echo($rogers); echo("\n"); $len = strlen($rogers); $rogers = substr($rogers, 6, $len); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("\n");

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.0000.01418.31
8.3.50.0150.00521.94
8.3.40.0060.01218.53
8.3.30.0040.01118.92
8.3.20.0040.00420.38
8.3.10.0000.00821.89
8.3.00.0050.00319.13
8.2.180.0140.00718.05
8.2.170.0090.00922.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00626.16
8.2.120.0040.00419.23
8.2.110.0070.00321.06
8.2.100.0060.00617.78
8.2.90.0030.00517.84
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0000.00818.03
8.2.50.0030.00618.07
8.2.40.0000.01117.80
8.2.30.0000.00717.95
8.2.20.0000.00817.70
8.2.10.0000.00818.13
8.2.00.0040.00417.63
8.1.280.0110.01125.92
8.1.270.0090.00020.77
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00422.65
8.1.230.0040.00721.03
8.1.220.0000.00817.74
8.1.210.0040.00418.91
8.1.200.0000.00917.38
8.1.190.0080.00317.35
8.1.180.0000.00718.10
8.1.170.0050.00320.43
8.1.160.0000.00922.01
8.1.150.0000.00818.87
8.1.140.0000.00717.52
8.1.130.0030.00517.75
8.1.120.0000.00817.51
8.1.110.0020.00517.52
8.1.100.0070.00017.38
8.1.90.0050.00317.50
8.1.80.0080.00017.42
8.1.70.0030.00317.43
8.1.60.0040.00417.63
8.1.50.0000.00817.57
8.1.40.0000.00817.48
8.1.30.0000.00817.52
8.1.20.0040.00417.55
8.1.10.0040.00417.49
8.1.00.0020.00517.45
8.0.300.0070.00020.04
8.0.290.0000.00716.63
8.0.280.0030.00318.51
8.0.270.0070.00017.30
8.0.260.0000.00617.32
8.0.250.0020.00516.95
8.0.240.0000.00716.93
8.0.230.0000.00716.84
8.0.220.0000.00816.84
8.0.210.0080.00016.80
8.0.200.0060.00016.98
8.0.190.0000.00716.89
8.0.180.0000.00816.91
8.0.170.0040.00416.91
8.0.160.0000.00716.79
8.0.150.0070.00016.87
8.0.140.0030.00416.75
8.0.130.0030.00313.26
8.0.120.0080.00016.82
8.0.110.0080.00016.98
8.0.100.0000.00716.71
8.0.90.0040.00416.88
8.0.80.0060.00916.83
8.0.70.0000.00816.96
8.0.60.0080.00016.79
8.0.50.0040.00416.85
8.0.30.0130.00816.91
8.0.20.0110.00817.44
8.0.10.0040.00416.97
8.0.00.0100.01016.94
7.4.330.0000.00615.09
7.4.320.0000.00616.62
7.4.300.0000.00616.61
7.4.290.0040.00416.50
7.4.280.0040.00416.55
7.4.270.0070.00016.52
7.4.260.0000.00716.55
7.4.250.0000.00716.45
7.4.240.0030.00516.52
7.4.230.0000.00716.65
7.4.220.0210.00916.68
7.4.210.0030.01216.50
7.4.200.0030.00416.54
7.4.160.0080.01316.24
7.4.150.0060.01317.40
7.4.140.0140.00517.86
7.4.130.0080.01016.54
7.4.120.0120.00516.45
7.4.110.0090.00916.33
7.4.100.0110.00816.52
7.4.90.0030.01516.41
7.4.80.0170.00719.39
7.4.70.0060.01616.37
7.4.60.0030.01216.62
7.4.50.0000.00516.45
7.4.40.0130.00716.43
7.4.30.0060.01116.59
7.4.00.0080.00814.82
7.3.330.0000.00512.99
7.3.320.0000.01613.11
7.3.310.0000.00716.10
7.3.300.0060.00016.09
7.3.290.0100.00716.24
7.3.280.0060.01216.26
7.3.270.0070.01417.40
7.3.260.0000.01716.46
7.3.250.0090.00916.39
7.3.240.0030.01316.63
7.3.230.0070.01716.39
7.3.210.0100.00616.33
7.3.200.0070.01019.39
7.3.190.0130.00316.48
7.3.180.0030.01316.38
7.3.170.0090.00916.46
7.3.160.0060.00916.32
7.3.120.0090.00914.46
7.3.110.0100.00714.79
7.3.100.0030.01214.71
7.3.90.0030.01014.71
7.3.80.0090.00914.89
7.3.70.0120.00314.60
7.3.60.0000.01414.69
7.3.50.0090.00314.63
7.3.40.0090.00614.94
7.3.30.0040.01114.86
7.3.20.0070.01116.57
7.3.10.0090.00916.20
7.3.00.0090.00916.26
7.2.330.0070.01116.55
7.2.320.0090.00916.42
7.2.310.0040.01516.37
7.2.300.0060.01216.66
7.2.290.0090.01316.63
7.2.250.0080.00815.11
7.2.240.0100.01014.91
7.2.230.0070.01014.98
7.2.220.0030.01015.02
7.2.210.0100.00714.96
7.2.200.0030.01015.01
7.2.190.0100.00715.00
7.2.180.0000.01114.91
7.2.170.0040.01115.07
7.2.130.0230.00016.11
7.2.120.0160.00816.09
7.2.110.0190.00916.41
7.2.100.0110.01116.36
7.2.90.0070.01115.95
7.2.80.0120.00416.32
7.2.70.0150.01116.16
7.2.60.0110.01116.49
7.2.50.0210.00616.44
7.2.40.0170.01016.25
7.2.30.0190.00716.57
7.2.20.0230.00716.25
7.2.10.0030.01316.20
7.2.00.0100.00718.04
7.1.330.0000.01215.78
7.1.320.0070.00315.71
7.1.310.0030.00915.80
7.1.300.0080.00615.78
7.1.290.0000.01215.64
7.1.280.0100.00715.82
7.1.270.0110.00015.75
7.1.260.0070.00715.59
7.1.250.0080.01115.28
7.1.100.0030.00818.21
7.1.70.0000.00817.22
7.1.60.0090.01519.50
7.1.50.0090.01317.03
7.1.00.0070.07322.31
7.0.200.0140.00714.67
7.0.140.0000.07721.95
7.0.60.0030.04719.95
7.0.50.0000.05017.87
7.0.40.0100.09020.07
7.0.30.0170.04320.17
7.0.20.0300.07320.16
7.0.10.0330.06720.03
7.0.00.0100.08720.19
5.6.280.0000.07320.93
5.6.210.0100.03720.60
5.6.200.0070.05018.15
5.6.190.0070.08720.41
5.6.180.0270.03720.75
5.6.170.0400.07020.71
5.6.160.0100.05020.49
5.6.150.0070.05318.11
5.6.140.0070.03718.15
5.6.130.0070.04718.12
5.6.120.0000.04320.99
5.6.110.0070.08721.14
5.6.100.0070.08320.99
5.6.90.0070.08321.11
5.6.80.0030.06320.52
5.6.70.0230.07320.46
5.5.350.0070.05720.32
5.5.340.0000.04317.97
5.5.330.0130.03720.21
5.5.320.0130.07020.19
5.5.310.0200.04320.27
5.5.300.0070.03717.89
5.5.290.0070.05017.91
5.5.280.0100.07720.66
5.5.270.0100.07320.68
5.5.260.0070.08720.84
5.5.250.0130.05020.58
5.5.240.0100.04320.12
5.4.450.0570.06019.49
5.4.440.1130.05719.50
5.4.430.0800.05019.23
5.4.420.1170.07019.60
5.4.410.0730.08719.32
5.4.400.0230.05718.55
5.4.390.0200.05318.74
5.4.380.0200.05718.68
5.4.370.0170.05318.77
5.4.360.0100.05718.50
5.4.350.0170.05318.50
5.4.340.0270.04318.68
5.4.320.0230.05018.69
5.4.310.0200.05018.71
5.4.300.0300.06718.70
5.4.290.0200.05318.56
5.4.280.0270.04718.69
5.4.270.0300.05318.68
5.4.260.0200.05318.65
5.4.250.0100.06318.63
5.4.240.0230.05018.77
5.4.230.0300.04018.52
5.4.220.0270.04718.60
5.4.210.0230.05318.52
5.4.200.0100.06316.38
5.4.190.0130.05718.59
5.4.180.0270.04318.55
5.4.170.0230.05018.48
5.4.160.0300.03718.67
5.4.150.0230.05318.56
5.4.140.0200.05316.32
5.4.130.0100.05716.17
5.4.120.0230.04316.36
5.4.110.0200.05016.32
5.4.100.0130.05316.14
5.4.90.0100.06016.22
5.4.80.0170.05316.25
5.4.70.0200.04716.20
5.4.60.0200.04716.14
5.4.50.0270.04316.04
5.4.40.0200.05316.16
5.4.30.0230.04316.09
5.4.20.0330.05316.22
5.4.10.0100.06016.29
5.4.00.0200.06315.50
5.3.290.0170.05714.66
5.3.280.0270.04714.60
5.3.270.0300.04314.54
5.3.260.0170.05314.58
5.3.250.0230.05314.65
5.3.240.0200.05314.56
5.3.230.0230.05314.56
5.3.220.0100.05714.52
5.3.210.0270.04314.57
5.3.200.0100.06014.50
5.3.190.0200.05014.47
5.3.180.0200.05014.66
5.3.170.0200.04714.52
5.3.160.0200.05014.55
5.3.150.0270.05014.63
5.3.140.0200.04714.53
5.3.130.0170.05314.45
5.3.120.0170.05714.55
5.3.110.0300.04014.64
5.3.100.0170.05014.10
5.3.90.0100.06013.99
5.3.80.0070.06013.92
5.3.70.0200.05014.05
5.3.60.0170.05313.99
5.3.50.0270.04713.93
5.3.40.0130.05313.88
5.3.30.0200.05314.04
5.3.20.0170.04713.78
5.3.10.0200.04713.70
5.3.00.0200.05313.64
5.2.170.0230.03311.21
5.2.160.0100.04311.10
5.2.150.0200.03711.08
5.2.140.0100.04711.12
5.2.130.0170.04311.03
5.2.120.0170.04011.07
5.2.110.0100.04711.16
5.2.100.0170.03711.08
5.2.90.0000.05311.25
5.2.80.0070.05011.25
5.2.70.0170.04011.06
5.2.60.0100.04311.23
5.2.50.0100.04311.18
5.2.40.0200.03310.93
5.2.30.0100.04310.96
5.2.20.0130.04011.11
5.2.10.0070.04310.85
5.2.00.0130.04310.73
5.1.60.0130.03310.02
5.1.50.0130.0379.98
5.1.40.0100.0439.97
5.1.30.0170.03310.39
5.1.20.0130.04310.34
5.1.10.0130.04310.05
5.1.00.0130.05310.20
5.0.50.0100.0308.70
5.0.40.0070.0308.48
5.0.30.0100.0438.25
5.0.20.0070.0308.29
5.0.10.0030.0438.26
5.0.00.0100.0508.21
4.4.90.0070.0236.80
4.4.80.0100.0236.80
4.4.70.0100.0206.80
4.4.60.0000.0306.80
4.4.50.0170.0176.80
4.4.40.0130.0336.80
4.4.30.0130.0176.80
4.4.20.0100.0206.80
4.4.10.0100.0176.80
4.4.00.0030.0376.80
4.3.110.0100.0206.80
4.3.100.0030.0276.80
4.3.90.0000.0306.80
4.3.80.0070.0436.80
4.3.70.0000.0376.80
4.3.60.0100.0306.80
4.3.50.0000.0306.80
4.3.40.0170.0436.80
4.3.30.0100.0176.80
4.3.20.0000.0276.80
4.3.10.0030.0276.80
4.3.00.0170.0206.82

preferences:
44.28 ms | 401 KiB | 5 Q