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://profile.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.70.0150.00618.30
8.3.60.0040.01816.49
8.3.50.0250.00416.60
8.3.40.0120.00318.88
8.3.30.0150.00018.93
8.3.20.0050.00320.29
8.3.10.0070.00023.64
8.3.00.0040.00421.93
8.2.180.0110.00418.79
8.2.170.0000.01522.96
8.2.160.0150.00019.00
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00321.02
8.2.120.0070.00026.35
8.2.110.0070.00322.17
8.2.100.0080.00417.72
8.2.90.0030.00519.26
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0040.00417.99
8.2.50.0080.00018.10
8.2.40.0090.00020.50
8.2.30.0000.00820.93
8.2.20.0000.00818.16
8.2.10.0000.00918.12
8.2.00.0070.00018.07
8.1.280.0060.00925.92
8.1.270.0050.00322.19
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00721.00
8.1.230.0040.00719.22
8.1.220.0040.00417.75
8.1.210.0040.00418.77
8.1.200.0100.00017.48
8.1.190.0050.00317.38
8.1.180.0080.00018.10
8.1.170.0080.00018.46
8.1.160.0000.00719.05
8.1.150.0060.00320.70
8.1.140.0000.00719.67
8.1.130.0030.00318.81
8.1.120.0020.00517.53
8.1.110.0040.00417.50
8.1.100.0050.00317.53
8.1.90.0050.00317.52
8.1.80.0040.00417.48
8.1.70.0000.00717.68
8.1.60.0000.00817.75
8.1.50.0000.00817.61
8.1.40.0030.00617.73
8.1.30.0000.00817.84
8.1.20.0050.00317.74
8.1.10.0000.00817.66
8.1.00.0040.00417.56
8.0.300.0040.00420.04
8.0.290.0040.00416.88
8.0.280.0040.00418.48
8.0.270.0000.00817.32
8.0.260.0030.00316.93
8.0.250.0000.00717.17
8.0.240.0000.00717.14
8.0.230.0070.00017.10
8.0.220.0000.00817.05
8.0.210.0030.00317.02
8.0.200.0070.00017.02
8.0.190.0030.00617.10
8.0.180.0110.00017.14
8.0.170.0040.00416.98
8.0.160.0050.00217.02
8.0.150.0050.00217.02
8.0.140.0070.00017.06
8.0.130.0030.00313.54
8.0.120.0080.00017.07
8.0.110.0040.00417.13
8.0.100.0040.00417.05
8.0.90.0000.00717.11
8.0.80.0120.01217.01
8.0.70.0040.00416.88
8.0.60.0040.00416.89
8.0.50.0000.00716.95
8.0.30.0110.00817.30
8.0.20.0070.01217.44
8.0.10.0050.00217.24
8.0.00.0030.01416.84
7.4.330.0000.00515.55
7.4.320.0000.00716.75
7.4.300.0000.00616.75
7.4.290.0030.00616.88
7.4.280.0080.00316.77
7.4.270.0000.00716.73
7.4.260.0000.00816.63
7.4.250.0050.00316.71
7.4.240.0040.00416.85
7.4.230.0030.00316.67
7.4.220.0100.00716.68
7.4.210.0070.01116.80
7.4.200.0000.00816.95
7.4.160.0110.01116.66
7.4.150.0030.01717.40
7.4.140.0100.01017.86
7.4.130.0100.00716.75
7.4.120.0120.00716.69
7.4.110.0030.01516.68
7.4.100.0220.00316.93
7.4.90.0070.01016.65
7.4.80.0180.01219.39
7.4.70.0080.00816.73
7.4.60.0170.00016.75
7.4.50.0030.01316.50
7.4.40.0120.01216.65
7.4.30.0120.00616.88
7.4.00.0060.00915.31
7.3.330.0060.00013.60
7.3.320.0030.00313.53
7.3.310.0000.00716.57
7.3.300.0040.00416.41
7.3.290.0000.00716.55
7.3.280.0080.00916.52
7.3.270.0040.01317.40
7.3.260.0080.01016.84
7.3.250.0100.00816.63
7.3.240.0140.00816.69
7.3.230.0110.00616.76
7.3.210.0110.00716.85
7.3.200.0060.01216.55
7.3.190.0090.00816.52
7.3.180.0110.00716.54
7.3.170.0130.01016.69
7.3.160.0080.00816.56
7.2.330.0110.00816.67
7.2.320.0120.00616.66
7.2.310.0110.01116.71
7.2.300.0060.01216.96
7.2.290.0110.01116.84
7.2.60.0000.01316.79
7.2.00.0070.00419.52
7.1.200.0080.00416.09
7.1.100.0040.00818.35
7.1.70.0030.01117.37
7.1.60.0190.00635.50
7.1.50.0140.01134.85
7.1.40.0140.01134.64
7.1.30.0180.00734.83
7.1.20.0150.01234.80
7.1.10.0030.00916.76
7.1.00.0070.00716.74
7.0.200.0090.00317.03
7.0.190.0000.01316.91
7.0.180.0000.01216.34
7.0.170.0040.01116.50
7.0.160.0090.00316.45
7.0.150.0040.00816.55
7.0.140.0000.01316.54
7.0.130.0040.00816.86
7.0.120.0080.00416.89
7.0.110.0070.00416.54
7.0.100.0070.00416.56
7.0.90.0000.01216.47
7.0.80.0030.00916.53
7.0.70.0030.00916.46
7.0.60.0060.00616.43
7.0.50.0000.01116.74
7.0.40.0090.00816.81
7.0.30.0060.00916.78
7.0.20.0060.00616.71
7.0.10.0060.00616.89
7.0.00.0030.01016.84

preferences:
46.99 ms | 401 KiB | 5 Q