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://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.0150.00716.63
8.3.50.0130.00316.50
8.3.40.0120.00318.98
8.3.30.0110.00418.89
8.3.20.0050.00320.31
8.3.10.0040.00423.68
8.3.00.0040.00422.14
8.2.180.0080.00818.41
8.2.170.0090.00622.96
8.2.160.0120.00319.08
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00821.15
8.2.120.0080.00026.35
8.2.110.0070.00322.22
8.2.100.0060.00618.03
8.2.90.0000.00818.80
8.2.80.0000.00917.97
8.2.70.0030.00617.88
8.2.60.0000.00818.03
8.2.50.0030.00618.10
8.2.40.0040.00420.59
8.2.30.0000.00921.03
8.2.20.0040.00418.01
8.2.10.0080.00018.15
8.2.00.0040.00418.21
8.1.280.0040.01125.92
8.1.270.0000.00822.20
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00923.92
8.1.230.0080.00322.19
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00717.48
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.68
8.1.160.0040.00419.10
8.1.150.0000.00820.66
8.1.140.0040.00419.61
8.1.130.0000.00818.84
8.1.120.0000.00817.49
8.1.110.0000.00817.48
8.1.100.0060.00317.66
8.1.90.0040.00417.68
8.1.80.0000.00717.60
8.1.70.0070.00017.52
8.1.60.0040.00417.70
8.1.50.0050.00317.73
8.1.40.0000.00817.50
8.1.30.0060.00317.76
8.1.20.0050.00317.70
8.1.10.0040.00417.57
8.1.00.0030.00617.50
8.0.300.0030.00618.77
8.0.290.0000.00817.00
8.0.280.0070.00018.35
8.0.270.0000.00717.25
8.0.260.0030.00316.90
8.0.250.0030.00317.18
8.0.240.0030.00317.02
8.0.230.0000.00817.13
8.0.220.0050.00217.05
8.0.210.0000.00716.98
8.0.200.0020.00517.15
8.0.190.0080.00017.18
8.0.180.0030.00717.07
8.0.170.0000.00717.11
8.0.160.0000.00717.03
8.0.150.0000.00817.08
8.0.140.0040.00417.01
8.0.130.0030.00313.47
8.0.120.0000.00816.93
8.0.110.0000.00717.08
8.0.100.0040.00417.12
8.0.90.0080.00016.84
8.0.80.0060.01217.12
8.0.70.0050.00316.99
8.0.60.0050.00217.12
8.0.50.0040.00417.04
8.0.30.0070.01117.28
8.0.20.0100.01017.40
8.0.10.0070.00017.24
8.0.00.0140.00317.13
7.4.330.0000.00515.55
7.4.320.0000.00616.88
7.4.300.0000.00716.73
7.4.290.0060.00316.84
7.4.280.0000.00916.83
7.4.270.0030.00316.88
7.4.260.0030.00516.73
7.4.250.0030.00516.68
7.4.240.0080.00016.84
7.4.230.0030.00516.80
7.4.220.0040.01516.86
7.4.210.0110.00416.80
7.4.200.0040.00416.53
7.4.160.0080.00816.58
7.4.150.0140.00617.40
7.4.140.0120.00717.86
7.4.130.0090.00816.57
7.4.120.0090.01016.60
7.4.110.0130.01016.69
7.4.100.0130.01016.91
7.4.90.0060.01216.68
7.4.80.0060.01219.39
7.4.70.0060.00916.67
7.4.60.0100.00616.71
7.4.50.0030.01316.84
7.4.40.0130.00916.53
7.4.30.0090.00916.75
7.4.10.0070.00715.09
7.4.00.0070.00915.10
7.3.330.0030.00313.46
7.3.320.0000.00513.34
7.3.310.0030.00516.34
7.3.300.0030.00316.40
7.3.290.0000.00916.50
7.3.280.0090.00716.53
7.3.270.0140.01017.40
7.3.260.0160.00616.65
7.3.250.0160.00616.52
7.3.240.0110.00916.80
7.3.230.0120.00616.84
7.3.210.0060.01116.53
7.3.200.0030.01416.57
7.3.190.0130.00616.48
7.3.180.0130.00316.73
7.3.170.0070.01016.53
7.3.160.0030.01316.62
7.3.130.0070.01014.68
7.3.120.0070.01214.98
7.3.110.0070.01015.04
7.3.100.0050.01215.14
7.3.90.0060.00915.14
7.3.80.0080.00614.95
7.3.70.0080.00714.97
7.3.60.0070.00814.98
7.3.50.0080.00314.89
7.3.40.0060.00815.07
7.3.30.0040.00914.97
7.3.20.0060.00916.88
7.3.10.0090.00616.85
7.3.00.0070.00816.77
7.2.330.0070.01416.70
7.2.320.0070.01116.90
7.2.310.0090.00916.62
7.2.300.0080.00816.91
7.2.290.0060.01716.77
7.2.260.0030.01315.31
7.2.250.0080.01115.21
7.2.240.0090.00815.15
7.2.230.0090.00715.13
7.2.220.0030.01415.20
7.2.210.0060.00715.18
7.2.200.0090.00615.12
7.2.190.0110.00715.00
7.2.180.0040.01115.13
7.2.170.0060.00915.17
7.2.160.0070.00815.10
7.2.150.0080.00717.01
7.2.140.0060.01217.08
7.2.130.0070.00717.05
7.2.120.0050.01017.03
7.2.110.0070.00816.97
7.2.100.0050.01016.92
7.2.90.0070.00816.92
7.2.80.0080.00817.17
7.2.70.0080.00517.16
7.2.60.0050.00616.94
7.2.50.0050.00816.99
7.2.40.0070.00717.04
7.2.30.0070.00917.04
7.2.20.0050.01017.06
7.2.10.0060.00817.01
7.2.00.0060.00917.57
7.1.330.0030.01415.97
7.1.320.0080.00415.86
7.1.310.0040.00716.02
7.1.300.0070.01015.97
7.1.290.0080.00515.92
7.1.280.0080.00415.95
7.1.270.0070.00515.92
7.1.260.0070.00715.94
7.1.250.0070.00715.90
7.1.240.0060.00615.77
7.1.230.0060.01015.96
7.1.220.0040.01016.04
7.1.210.0030.00815.98
7.1.200.0110.00915.96
7.1.190.0040.00615.85
7.1.180.0050.00816.06
7.1.170.0050.00816.02
7.1.160.0080.00715.86
7.1.150.0070.00715.86
7.1.140.0010.01115.97
7.1.130.0050.00715.93
7.1.120.0060.00815.90
7.1.110.0070.00815.88
7.1.100.0030.01116.54
7.1.90.0010.01315.95
7.1.80.0050.00916.06
7.1.70.0030.01016.31
7.1.60.0070.00820.78
7.1.50.0110.00720.66
7.1.40.0080.01020.52
7.1.30.0080.00920.70
7.1.20.0080.01020.65
7.1.10.0050.00916.15
7.1.00.0020.01116.15
7.0.330.0040.00915.44
7.0.320.0060.00815.44
7.0.310.0080.00415.47
7.0.300.0050.00915.56
7.0.290.0070.00915.35
7.0.280.0080.00515.47
7.0.270.0050.01015.51
7.0.260.0070.00715.42
7.0.250.0050.00815.52
7.0.240.0050.00715.52
7.0.230.0050.00915.62
7.0.220.0060.00615.50
7.0.210.0020.01215.47
7.0.200.0070.00715.93
7.0.190.0080.00715.85
7.0.180.0050.00615.70
7.0.170.0030.01015.72
7.0.160.0050.01115.85
7.0.150.0070.00715.61
7.0.140.0060.01015.84
7.0.130.0030.01315.82
7.0.120.0060.00815.73
7.0.110.0080.00815.70
7.0.100.0050.01015.74
7.0.90.0080.00615.82
7.0.80.0060.00715.81
7.0.70.0060.00715.75
7.0.60.0050.01115.77
7.0.50.0040.01015.85
7.0.40.0060.00514.44
7.0.30.0040.00714.45
7.0.20.0070.00914.42
7.0.10.0040.00714.40
7.0.00.0090.00514.36
5.6.400.0070.01014.42
5.6.390.0070.00814.54
5.6.380.0060.00714.37
5.6.370.0040.01114.31
5.6.360.0060.00814.26
5.6.350.0120.00114.36
5.6.340.0050.00914.29
5.6.330.0090.00614.37
5.6.320.0090.00514.33
5.6.310.0050.00714.37
5.6.300.0080.00814.44
5.6.290.0080.01114.61
5.6.280.0090.00714.33
5.6.270.0120.00514.27
5.6.260.0080.00914.36
5.6.250.0080.00514.50
5.6.240.0050.00914.40
5.6.230.0040.01014.37
5.6.220.0070.01014.30
5.6.210.0060.01014.41
5.6.200.0020.00914.40
5.6.190.0040.00814.38
5.6.180.0070.00814.45
5.6.170.0030.01014.21
5.6.160.0050.00614.43
5.6.150.0030.01114.33
5.6.140.0080.00714.29
5.6.130.0100.00314.38
5.6.120.0070.00914.36
5.6.110.0060.00614.29
5.6.100.0050.01114.29
5.6.90.0120.00114.29
5.6.80.0050.00614.34
5.6.70.0070.00814.18
5.6.60.0050.01014.32
5.6.50.0080.00814.27
5.6.40.0080.00614.14
5.6.30.0060.00714.14
5.6.20.0080.00714.36
5.6.10.0070.00714.33
5.6.00.0070.00914.24

preferences:
42.43 ms | 401 KiB | 5 Q