3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isSocial($url){ $patDom=array("(\.|https*\:\/\/)facebook\.[a-z]+\/","(\.|https*\:\/\/)twitter\.[a-z]+\/","(\.|https*\:\/\/)plus\.*google\.[a-z]+\/","(\.|https*\:\/\/)linkedin\.[a-z]+\/","(\.|https*\:\/\/)instagram\.[a-z]+\/","(\.|https*\:\/\/)myspcae\.[a-z]+\/","(\.|https*\:\/\/)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.40.0180.00018.79
8.3.30.0090.00618.88
8.3.20.0070.00020.20
8.3.10.0080.00023.48
8.3.00.0070.00422.12
8.2.170.0030.01722.96
8.2.160.0040.01119.09
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0080.00021.25
8.2.120.0040.00426.35
8.2.110.0070.00322.21
8.2.100.0120.00018.02
8.2.90.0030.00619.05
8.2.80.0060.00318.04
8.2.70.0060.00317.88
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0030.00620.59
8.2.30.0030.00521.09
8.2.20.0050.00218.11
8.2.10.0030.00518.07
8.2.00.0000.00818.28
8.1.270.0120.00323.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0040.00421.17
8.1.230.0060.00619.02
8.1.220.0060.00317.88
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00717.23
8.1.180.0060.00318.10
8.1.170.0030.00620.38
8.1.160.0000.00818.97
8.1.150.0030.00520.71
8.1.140.0030.00519.61
8.1.130.0030.00618.93
8.1.120.0000.00817.68
8.1.110.0000.00717.56
8.1.100.0000.00817.64
8.1.90.0000.00717.61
8.1.80.0000.00817.68
8.1.70.0040.00417.60
8.1.60.0080.00017.76
8.1.50.0080.00017.67
8.1.40.0030.00617.70
8.1.30.0040.00417.72
8.1.20.0050.00317.86
8.1.10.0040.00417.64
8.1.00.0000.00817.52
8.0.300.0040.00420.22
8.0.290.0090.00016.88
8.0.280.0000.00718.36
8.0.270.0080.00017.23
8.0.260.0000.00717.04
8.0.250.0050.00317.05
8.0.240.0000.00717.08
8.0.230.0000.00717.04
8.0.220.0050.00317.05
8.0.210.0000.00717.04
8.0.200.0060.00017.10
8.0.190.0030.00517.14
8.0.180.0030.00817.01
8.0.170.0000.00716.99
8.0.160.0040.00417.02
8.0.150.0040.00417.02
8.0.140.0040.00417.05
8.0.130.0030.00313.49
8.0.120.0000.00717.03
8.0.110.0050.00316.96
8.0.100.0070.00016.93
8.0.90.0040.00416.98
8.0.80.0090.01317.03
8.0.70.0040.00417.12
8.0.60.0030.00516.92
8.0.50.0000.00816.93
8.0.30.0080.01017.23
8.0.20.0110.00817.40
8.0.10.0000.00817.10
8.0.00.0110.00716.99
7.4.330.0020.00215.55
7.4.320.0040.00416.85
7.4.300.0040.00416.64
7.4.290.0070.00416.88
7.4.280.0000.00816.64
7.4.270.0000.00716.70
7.4.260.0030.00316.75
7.4.250.0040.00416.81
7.4.240.0040.00416.87
7.4.230.0000.00716.87
7.4.220.0070.01116.83
7.4.210.0110.00516.66
7.4.200.0040.00416.93
7.4.160.0040.01516.72
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0110.00816.62
7.4.120.0110.00916.68
7.4.110.0130.01016.60
7.4.100.0070.01016.77
7.4.90.0100.00716.68
7.4.80.0140.00319.39
7.4.70.0030.01416.76
7.4.60.0030.01316.80
7.4.50.0060.01216.70
7.4.40.0070.01116.80
7.4.30.0140.00416.79
7.4.00.0100.00615.23
7.3.330.0000.00513.52
7.3.320.0050.00013.40
7.3.310.0050.00216.63
7.3.300.0040.00416.55
7.3.290.0000.00716.45
7.3.280.0070.00916.53
7.3.270.0030.01417.40
7.3.260.0090.01216.59
7.3.250.0110.00916.51
7.3.240.0110.01116.70
7.3.230.0130.00316.81
7.3.210.0100.00716.54
7.3.200.0170.00016.81
7.3.190.0070.01016.64
7.3.180.0000.01916.60
7.3.170.0120.01216.59
7.3.160.0100.00716.52
7.3.120.0070.00715.04
7.3.110.0090.00315.07
7.3.100.0000.01115.05
7.3.90.0060.00615.11
7.3.80.0040.01214.96
7.3.70.0030.00914.71
7.3.60.0040.00814.93
7.3.50.0000.01214.88
7.3.40.0130.00014.91
7.3.30.0090.00314.95
7.3.20.0000.01516.87
7.3.10.0060.00616.72
7.3.00.0000.01516.91
7.2.330.0100.01316.74
7.2.320.0110.00716.91
7.2.310.0110.00616.75
7.2.300.0100.01316.85
7.2.290.0130.01316.69
7.2.250.0070.01115.27
7.2.240.0030.01615.26
7.2.230.0070.00714.90
7.2.220.0100.00315.30
7.2.210.0080.00414.98
7.2.200.0030.01015.19
7.2.190.0000.01315.14
7.2.180.0030.01415.27
7.2.170.0100.00315.02
7.2.160.0030.00915.21
7.2.150.0120.00416.90
7.2.140.0060.01217.17
7.2.130.0100.00317.03
7.2.120.0060.00916.93
7.2.110.0060.00916.80
7.2.100.0060.00617.08
7.2.90.0100.00717.11
7.2.80.0030.00917.01
7.2.70.0040.00717.09
7.2.60.0070.00716.98
7.2.50.0040.01116.88
7.2.40.0040.01216.91
7.2.30.0080.00816.86
7.2.20.0030.00916.97
7.2.10.0030.00917.13
7.2.00.0060.00618.37
7.1.330.0120.00015.59
7.1.320.0060.00616.18
7.1.310.0030.01015.70
7.1.300.0000.01215.89
7.1.290.0030.00815.60
7.1.280.0070.00715.68
7.1.270.0100.00615.85
7.1.260.0000.01216.09
7.1.250.0000.01416.04
7.1.200.0030.01015.64
7.1.100.0140.00618.13
7.1.70.0060.00617.38
7.1.60.0160.00935.05
7.1.50.0220.00734.72
7.1.40.0170.00934.33
7.1.30.0140.01434.51
7.1.20.0160.01034.52
7.1.10.0030.01016.87
7.1.00.0030.01017.12
7.0.200.0090.00317.09
7.0.190.0100.00316.86
7.0.180.0030.00916.49
7.0.170.0060.00616.38
7.0.160.0000.01116.42
7.0.150.0000.01316.56
7.0.140.0060.00616.57
7.0.130.0040.01116.64
7.0.120.0030.01016.68
7.0.110.0070.00716.77
7.0.100.0000.01416.57
7.0.90.0060.00616.64
7.0.80.0030.01316.51
7.0.70.0030.01016.46
7.0.60.0000.01216.52
7.0.50.0030.00916.55
7.0.40.0030.01016.79
7.0.30.0030.01016.81
7.0.20.0100.00316.60
7.0.10.0040.00816.73
7.0.00.0030.01216.84

preferences:
36.97 ms | 400 KiB | 5 Q