3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isSocial($url){ $patDom=array("\.*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://jetfacebook.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.0120.00316.88
8.3.50.0060.01616.40
8.3.40.0150.00318.85
8.3.30.0110.00418.88
8.3.20.0040.00420.16
8.3.10.0080.00023.36
8.3.00.0030.00621.97
8.2.180.0040.01118.66
8.2.170.0080.00822.96
8.2.160.0120.00319.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.24
8.2.120.0040.00426.35
8.2.110.0030.00622.33
8.2.100.0070.00418.03
8.2.90.0000.00819.04
8.2.80.0000.00818.05
8.2.70.0000.00817.75
8.2.60.0000.00917.93
8.2.50.0050.00318.10
8.2.40.0040.00420.42
8.2.30.0030.00521.07
8.2.20.0000.00818.00
8.2.10.0040.00418.24
8.2.00.0070.00018.22
8.1.280.0060.00925.92
8.1.270.0080.00022.02
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0110.01121.17
8.1.230.0040.00719.10
8.1.220.0050.00317.77
8.1.210.0030.00518.77
8.1.200.0060.00317.47
8.1.190.0060.00317.36
8.1.180.0050.00318.10
8.1.170.0000.00818.63
8.1.160.0040.00419.04
8.1.150.0040.00420.66
8.1.140.0000.00819.61
8.1.130.0030.00518.92
8.1.120.0040.00417.59
8.1.110.0040.00417.62
8.1.100.0000.00817.67
8.1.90.0000.00717.64
8.1.80.0000.00717.66
8.1.70.0030.00317.59
8.1.60.0000.00817.74
8.1.50.0030.00517.67
8.1.40.0000.00817.56
8.1.30.0000.00817.65
8.1.20.0000.00817.88
8.1.10.0040.00417.54
8.1.00.0000.00817.59
8.0.300.0040.00420.21
8.0.290.0040.00416.88
8.0.280.0070.00018.39
8.0.270.0040.00417.14
8.0.260.0080.00016.98
8.0.250.0030.00317.11
8.0.240.0000.00817.05
8.0.230.0030.00317.02
8.0.220.0000.00717.04
8.0.210.0030.00416.94
8.0.200.0030.00517.07
8.0.190.0030.00617.08
8.0.180.0060.00317.03
8.0.170.0030.00517.06
8.0.160.0040.00416.95
8.0.150.0000.00717.10
8.0.140.0000.00716.92
8.0.130.0030.00313.54
8.0.120.0000.00816.93
8.0.110.0040.00416.90
8.0.100.0040.00416.86
8.0.90.0050.00316.93
8.0.80.0060.01617.02
8.0.70.0050.00317.11
8.0.60.0040.00416.97
8.0.50.0050.00216.95
8.0.30.0090.00817.35
8.0.20.0140.00817.40
8.0.10.0070.00017.08
8.0.00.0030.01417.09
7.4.330.0020.00215.55
7.4.320.0030.00316.75
7.4.300.0030.00316.62
7.4.290.0060.00616.71
7.4.280.0030.00616.73
7.4.270.0030.00316.75
7.4.260.0030.00316.71
7.4.250.0070.00016.71
7.4.240.0040.00416.80
7.4.230.0040.00416.80
7.4.220.0070.01016.66
7.4.210.0140.00216.86
7.4.200.0040.00416.70
7.4.160.0090.01016.80
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0110.00816.65
7.4.120.0150.00516.68
7.4.110.0130.00716.64
7.4.100.0060.01116.64
7.4.90.0150.00316.67
7.4.80.0060.01319.39
7.4.70.0090.00816.55
7.4.60.0060.01016.82
7.4.50.0040.01116.77
7.4.40.0140.00516.85
7.4.30.0100.00716.87
7.4.00.0070.01015.09
7.3.330.0000.00613.59
7.3.320.0030.00313.52
7.3.310.0040.00416.52
7.3.300.0000.00716.52
7.3.290.0040.00416.48
7.3.280.0070.00916.52
7.3.270.0030.01417.40
7.3.260.0100.00716.70
7.3.250.0110.00916.58
7.3.240.0110.01016.83
7.3.230.0090.00916.86
7.3.210.0100.01316.46
7.3.200.0090.00916.65
7.3.190.0090.01316.77
7.3.180.0100.00716.73
7.3.170.0120.00916.58
7.3.160.0150.00216.89
7.3.120.0130.00315.17
7.3.110.0030.00915.16
7.3.100.0000.01314.97
7.3.90.0080.00414.98
7.3.80.0080.00814.92
7.3.70.0100.00714.72
7.3.60.0000.01715.07
7.3.50.0090.00614.93
7.3.40.0000.01015.04
7.3.30.0070.00714.86
7.3.20.0030.00916.95
7.3.10.0100.00516.74
7.3.00.0100.00516.71
7.2.330.0090.01316.77
7.2.320.0060.01316.65
7.2.310.0030.01316.93
7.2.300.0140.00316.78
7.2.290.0140.01116.72
7.2.240.0030.01015.31
7.2.230.0030.01315.29
7.2.220.0100.00715.33
7.2.210.0080.00815.06
7.2.200.0120.00015.12
7.2.190.0060.01115.03
7.2.180.0060.00915.20
7.2.170.0110.00415.14
7.2.160.0030.01415.06
7.2.150.0060.01216.95
7.2.140.0030.00716.71
7.2.130.0020.01217.01
7.2.120.0110.00516.97
7.2.110.0070.00717.07
7.2.100.0090.00617.08
7.2.90.0120.00217.12
7.2.80.0020.01216.85
7.2.70.0070.00716.96
7.2.60.0070.00916.93
7.2.50.0080.00417.07
7.2.40.0060.00916.96
7.2.30.0040.01117.04
7.2.20.0070.00516.85
7.2.10.0060.01016.86
7.2.00.0030.01117.95
7.1.330.0000.01815.78
7.1.320.0090.00615.96
7.1.310.0070.00715.61
7.1.300.0000.01316.09
7.1.290.0070.01015.81
7.1.280.0060.01215.83
7.1.270.0090.00615.85
7.1.260.0100.00315.94
7.1.250.0040.00815.94
7.1.240.0060.00615.99
7.1.230.0070.00716.02
7.1.220.0000.01515.86
7.1.210.0080.00415.97
7.1.200.0030.01015.95
7.1.190.0040.00915.82
7.1.180.0030.00615.69
7.1.170.0040.00715.82
7.1.160.0030.01015.95
7.1.150.0040.00416.06
7.1.140.0030.00615.73
7.1.130.0030.00716.10
7.1.120.0060.00616.10
7.1.110.0070.00416.16
7.1.100.0020.01117.05
7.1.90.0070.00316.04
7.1.80.0080.00416.04
7.1.70.0030.00916.56
7.1.60.0090.00725.79
7.1.50.0090.00925.45
7.1.40.0140.00825.22
7.1.30.0150.00325.42
7.1.20.0100.01025.43
7.1.10.0060.00716.26
7.1.00.0020.00916.30
7.0.330.0060.00315.39
7.0.320.0070.00315.47
7.0.310.0090.00615.14
7.0.300.0050.00515.36
7.0.290.0000.01615.53
7.0.280.0080.00515.39
7.0.270.0090.00615.44
7.0.260.0030.01015.46
7.0.250.0120.00015.85
7.0.240.0040.00415.50
7.0.230.0100.00215.45
7.0.220.0030.00315.38
7.0.210.0140.00015.33
7.0.200.0060.00716.36
7.0.190.0030.01016.19
7.0.180.0030.01016.00
7.0.170.0040.01015.75
7.0.160.0070.00715.84
7.0.150.0040.01215.90
7.0.140.0030.01116.09
7.0.130.0020.01116.09
7.0.120.0060.00716.06
7.0.110.0050.01016.10
7.0.100.0080.00516.00
7.0.90.0000.01416.02
7.0.80.0030.00916.19
7.0.70.0050.00915.88
7.0.60.0050.01015.93
7.0.50.0070.00716.07
7.0.40.0070.00715.11
7.0.30.0060.00715.23
7.0.20.0090.00514.98
7.0.10.0070.00615.14
7.0.00.0060.00915.09
5.6.380.0080.00414.67

preferences:
54.5 ms | 401 KiB | 5 Q