3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isSocial($url){ $patDom=array("(\.|https*\:\/\/)facebook\.[a-z]+\/","\.*twitter\.[a-z]+\/","\.*plus\.*google\.[a-z]+\/","\.*linkedin\.[a-z]+\/","\.*instagram\.[a-z]+\/","\.*myspcae\.[a-z]+\/","\.*pinterest\.[a-z]+\/"); foreach($patDom as $pat){ if(preg_match("/$pat/i",$url))return true; } return false; } $urls=array("http://facebook.com/hedayat.yazdani","http://plug.google.com/image/24","http://www.twitter.net/image/24","http://jointab.com"); foreach($urls as $key=>$value){ echo "$key - $value => is".(isSocial($value)?" ":" [not] ")."social network page\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.0140.00716.59
8.3.50.0070.01016.29
8.3.40.0070.01018.61
8.3.30.0120.00318.97
8.3.20.0040.00420.29
8.3.10.0000.00823.66
8.3.00.0040.00421.96
8.2.180.0110.00418.28
8.2.170.0160.00422.96
8.2.160.0120.00619.21
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00020.87
8.2.120.0000.00726.35
8.2.110.0030.00722.10
8.2.100.0070.00417.91
8.2.90.0080.00017.97
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0030.00618.10
8.2.40.0030.00520.56
8.2.30.0060.00320.99
8.2.20.0050.00218.11
8.2.10.0020.00618.09
8.2.00.0040.00418.04
8.1.280.0070.00725.92
8.1.270.0040.00422.05
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.16
8.1.230.0110.00020.89
8.1.220.0000.00917.79
8.1.210.0060.00318.96
8.1.200.0030.00617.23
8.1.190.0030.00617.36
8.1.180.0080.00018.10
8.1.170.0000.00818.62
8.1.160.0000.00718.98
8.1.150.0000.00820.62
8.1.140.0040.00419.61
8.1.130.0040.00418.93
8.1.120.0040.00417.57
8.1.110.0040.00417.48
8.1.100.0000.00817.65
8.1.90.0000.00717.65
8.1.80.0040.00417.65
8.1.70.0000.00717.65
8.1.60.0080.00017.76
8.1.50.0040.00417.66
8.1.40.0030.00617.68
8.1.30.0000.00817.79
8.1.20.0000.00817.80
8.1.10.0030.00517.68
8.1.00.0040.00417.62
8.0.300.0000.00820.20
8.0.290.0040.00417.00
8.0.280.0000.00718.41
8.0.270.0000.00717.39
8.0.260.0070.00017.04
8.0.250.0040.00417.03
8.0.240.0000.00717.17
8.0.230.0000.00717.06
8.0.220.0070.00017.05
8.0.210.0070.00017.00
8.0.200.0000.00817.09
8.0.190.0050.00317.12
8.0.180.0000.00817.01
8.0.170.0040.00417.00
8.0.160.0040.00417.14
8.0.150.0040.00416.98
8.0.140.0000.00716.95
8.0.130.0060.00013.55
8.0.120.0020.00516.99
8.0.110.0000.00816.92
8.0.100.0000.00717.03
8.0.90.0040.00417.05
8.0.80.0090.01017.11
8.0.70.0000.00816.93
8.0.60.0050.00317.00
8.0.50.0000.00716.95
8.0.30.0080.01117.27
8.0.20.0110.00817.45
8.0.10.0070.00017.25
8.0.00.0060.01116.79
7.4.330.0050.00015.55
7.4.320.0000.00616.85
7.4.300.0030.00316.88
7.4.290.0090.00316.75
7.4.280.0070.00016.74
7.4.270.0040.00416.85
7.4.260.0030.00316.83
7.4.250.0040.00416.72
7.4.240.0070.00016.80
7.4.230.0000.00716.73
7.4.220.0140.01416.93
7.4.210.0100.00816.79
7.4.200.0000.00716.67
7.4.160.0120.00816.64
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0070.01116.76
7.4.120.0110.00816.71
7.4.110.0030.01616.81
7.4.100.0070.01016.85
7.4.90.0120.00616.88
7.4.80.0030.01619.39
7.4.70.0100.00716.65
7.4.60.0110.00616.64
7.4.50.0060.00916.77
7.4.40.0140.01116.68
7.4.30.0100.00716.72
7.4.10.0090.00815.28
7.4.00.0050.01215.14
7.3.330.0000.00513.36
7.3.320.0030.00313.60
7.3.310.0040.00416.49
7.3.300.0040.00416.41
7.3.290.0030.00616.55
7.3.280.0080.01016.53
7.3.270.0080.01617.40
7.3.260.0070.01016.74
7.3.250.0090.01316.52
7.3.240.0110.01116.57
7.3.230.0190.00316.49
7.3.210.0060.01116.78
7.3.200.0100.01016.86
7.3.190.0190.00316.54
7.3.180.0090.00616.76
7.3.170.0160.00616.45
7.3.160.0000.01816.72
7.3.130.0060.00915.05
7.3.120.0050.01214.98
7.3.110.0050.01215.03
7.3.100.0070.01014.92
7.3.90.0120.00515.10
7.3.80.0030.01014.81
7.3.70.0060.00914.95
7.3.60.0060.00715.07
7.3.50.0030.01014.98
7.3.40.0050.00914.79
7.3.30.0090.00514.98
7.3.20.0060.00816.94
7.3.10.0050.00816.92
7.3.00.0070.00816.87
7.2.330.0140.00416.81
7.2.320.0070.01016.73
7.2.310.0120.00416.83
7.2.300.0070.01016.88
7.2.290.0040.01916.80
7.2.260.0090.01015.32
7.2.250.0040.01315.32
7.2.240.0050.01015.15
7.2.230.0060.01215.00
7.2.220.0070.00815.04
7.2.210.0030.01015.19
7.2.200.0020.00915.15
7.2.190.0100.00815.19
7.2.180.0080.00615.04
7.2.170.0050.00715.10
7.2.160.0080.00615.10
7.2.150.0100.00216.80
7.2.140.0070.00817.03
7.2.130.0070.00817.10
7.2.120.0040.00917.17
7.2.110.0050.00917.04
7.2.100.0050.00717.05
7.2.90.0080.00517.03
7.2.80.0070.00417.14
7.2.70.0050.01117.21
7.2.60.0040.00917.16
7.2.50.0070.00817.01
7.2.40.0080.00517.06
7.2.30.0080.00617.07
7.2.20.0080.00516.96
7.2.10.0060.00817.03
7.2.00.0030.01016.93
7.1.330.0020.01416.19
7.1.320.0110.00615.87
7.1.310.0080.00616.15
7.1.300.0040.00916.01
7.1.290.0050.00715.99
7.1.280.0050.00515.98
7.1.270.0050.00715.78
7.1.260.0050.00715.99
7.1.250.0060.00616.10
7.1.240.0050.00716.10
7.1.230.0070.00516.07
7.1.220.0040.01016.05
7.1.210.0050.00915.87
7.1.200.0050.00516.07
7.1.190.0060.00316.04
7.1.180.0090.00315.95
7.1.170.0060.00615.93
7.1.160.0040.00916.13
7.1.150.0020.00816.13
7.1.140.0070.00615.90
7.1.130.0050.00916.00
7.1.120.0050.00915.86
7.1.110.0030.01015.87
7.1.100.0000.01116.12
7.1.90.0040.00616.10
7.1.80.0070.01115.80
7.1.70.0020.01316.30
7.1.60.0230.00721.93
7.1.50.0090.01022.34
7.1.40.0210.01121.68
7.1.30.0160.00922.19
7.1.20.0090.01122.33
7.1.10.0080.00916.14
7.1.00.0050.01016.29
7.0.330.0070.00515.61
7.0.320.0060.01015.59
7.0.310.0080.00515.40
7.0.300.0030.00815.69
7.0.290.0100.00215.59
7.0.280.0030.01015.62
7.0.270.0040.00815.38
7.0.260.0090.00515.61
7.0.250.0030.01115.59
7.0.240.0070.00415.55
7.0.230.0080.00515.71
7.0.220.0070.00715.57
7.0.210.0060.00815.35
7.0.200.0110.01215.33
7.0.190.0120.00715.45
7.0.180.0060.00815.80
7.0.170.0040.00815.90
7.0.160.0130.00915.17
7.0.150.0070.00615.79
7.0.140.0070.00515.96
7.0.130.0020.01315.99
7.0.120.0050.01015.97
7.0.110.0040.01115.93
7.0.100.0020.01215.92
7.0.90.0050.00815.92
7.0.80.0100.00415.90
7.0.70.0090.00515.78
7.0.60.0070.00515.86
7.0.50.0020.01215.96
7.0.40.0060.00614.63
7.0.30.0020.01114.64
7.0.20.0050.01014.54
7.0.10.0030.00914.59
7.0.00.0050.00914.73
5.6.400.0050.01014.40
5.6.390.0030.00714.47
5.6.380.0030.01214.50
5.6.370.0040.00714.26
5.6.360.0050.00614.34
5.6.350.0090.00214.41
5.6.340.0100.00314.60
5.6.330.0030.00714.51
5.6.320.0090.00514.41
5.6.310.0020.01014.55
5.6.300.0030.00814.57
5.6.290.0050.00614.38
5.6.280.0050.01114.57
5.6.270.0020.01214.30
5.6.260.0010.00814.49
5.6.250.0030.00714.28
5.6.240.0070.00514.22
5.6.230.0100.00514.39
5.6.220.0050.00814.50
5.6.210.0030.01014.39
5.6.200.0040.00914.35
5.6.190.0090.00414.37
5.6.180.0060.00714.42
5.6.170.0050.00914.39
5.6.160.0050.00514.49
5.6.150.0020.00914.45
5.6.140.0050.00814.32
5.6.130.0030.01014.47
5.6.120.0030.00814.54
5.6.110.0040.00914.52
5.6.100.0030.01214.31
5.6.90.0060.00614.60
5.6.80.0080.00514.42
5.6.70.0060.00814.30
5.6.60.0090.00314.30
5.6.50.0050.00914.30
5.6.40.0080.00314.35
5.6.30.0030.00714.47
5.6.20.0030.00714.40
5.6.10.0020.01014.50
5.6.00.0040.01014.29

preferences:
32.04 ms | 401 KiB | 5 Q