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($url)?" ":" [not] ")."social network page"; }

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.0100.01316.75
8.3.50.0100.01016.50
8.3.40.0060.01319.03
8.3.30.0110.00418.90
8.3.20.0040.00420.33
8.3.10.0050.00323.65
8.3.00.0000.00821.82
8.2.180.0150.00018.66
8.2.170.0120.00922.96
8.2.160.0150.00619.20
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00021.17
8.2.120.0080.00026.35
8.2.110.0090.00022.23
8.2.100.0030.00917.97
8.2.90.0000.00919.03
8.2.80.0030.00517.97
8.2.70.0090.00017.88
8.2.60.0000.00818.04
8.2.50.0000.00818.10
8.2.40.0050.00320.55
8.2.30.0090.00021.06
8.2.20.0000.00818.02
8.2.10.0000.00818.16
8.2.00.0040.00418.15
8.1.280.0110.00725.92
8.1.270.0040.00422.08
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.88
8.1.230.0090.00322.14
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0070.00317.48
8.1.190.0000.00817.38
8.1.180.0050.00318.10
8.1.170.0000.00818.82
8.1.160.0030.00518.96
8.1.150.0040.00420.70
8.1.140.0000.00719.48
8.1.130.0000.00718.88
8.1.120.0070.00417.62
8.1.110.0000.00817.54
8.1.100.0000.00917.48
8.1.90.0040.00417.64
8.1.80.0000.00717.66
8.1.70.0040.00417.46
8.1.60.0030.00517.65
8.1.50.0030.00517.71
8.1.40.0060.00317.64
8.1.30.0040.00417.77
8.1.20.0080.00017.78
8.1.10.0040.00417.67
8.1.00.0040.00417.57
8.0.300.0000.00818.77
8.0.290.0000.00717.00
8.0.280.0070.00018.47
8.0.270.0040.00417.30
8.0.260.0030.00317.03
8.0.250.0030.00317.20
8.0.240.0030.00317.21
8.0.230.0030.00317.21
8.0.220.0000.00816.96
8.0.210.0000.00816.98
8.0.200.0030.00517.16
8.0.190.0050.00517.10
8.0.180.0040.00417.01
8.0.170.0000.00717.15
8.0.160.0000.00717.09
8.0.150.0030.00617.04
8.0.140.0040.00417.08
8.0.130.0000.00513.50
8.0.120.0060.00317.07
8.0.110.0070.00017.11
8.0.100.0050.00216.94
8.0.90.0080.00016.95
8.0.80.0070.01417.13
8.0.70.0030.00517.05
8.0.60.0000.00716.95
8.0.50.0020.00516.98
8.0.30.0100.00817.25
8.0.20.0090.01217.40
8.0.10.0000.00717.21
8.0.00.0120.00616.86
7.4.330.0050.00015.55
7.4.320.0060.00016.88
7.4.300.0000.00716.83
7.4.290.0030.00616.68
7.4.280.0060.00316.83
7.4.270.0030.00316.78
7.4.260.0040.00416.80
7.4.250.0000.00716.77
7.4.240.0080.00016.72
7.4.230.0030.00316.88
7.4.220.0090.00916.81
7.4.210.0090.00616.71
7.4.200.0000.00716.81
7.4.160.0140.00216.79
7.4.150.0060.01317.40
7.4.140.0110.00817.86
7.4.130.0120.00716.98
7.4.120.0050.01716.75
7.4.110.0130.00916.81
7.4.100.0030.01416.70
7.4.90.0060.01216.50
7.4.80.0130.00919.39
7.4.70.0170.00016.84
7.4.60.0090.00616.64
7.4.50.0060.00916.52
7.4.40.0080.01216.79
7.4.30.0030.01616.96
7.4.00.0120.00314.95
7.3.330.0030.00313.44
7.3.320.0000.00513.62
7.3.310.0080.00016.68
7.3.300.0030.00516.60
7.3.290.0040.00416.59
7.3.280.0090.00816.57
7.3.270.0060.01217.40
7.3.260.0120.00516.67
7.3.250.0100.01016.71
7.3.240.0130.00916.56
7.3.230.0080.00916.75
7.3.210.0070.01016.61
7.3.200.0150.00616.59
7.3.190.0100.01016.70
7.3.180.0060.01216.78
7.3.170.0060.01216.85
7.3.160.0100.00716.70
7.2.330.0100.00716.74
7.2.320.0110.00716.67
7.2.310.0030.01416.80
7.2.300.0200.00316.93
7.2.290.0120.00916.73
7.2.60.0090.00616.93
7.2.00.0120.00319.39
7.1.200.0070.00715.77
7.1.100.0180.00916.47
7.1.70.0040.01117.48
7.1.60.0160.01035.42
7.1.50.0190.01034.92
7.1.40.0240.00334.75
7.1.30.0130.01334.83
7.1.20.0170.01034.72
7.1.10.0030.01017.02
7.1.00.0090.00616.92
7.0.200.0080.00416.99
7.0.190.0100.00317.09
7.0.180.0060.00616.61
7.0.170.0030.00916.61
7.0.160.0080.00816.63
7.0.150.0070.00716.72
7.0.140.0000.01316.52
7.0.130.0040.01416.63
7.0.120.0110.00716.56
7.0.110.0030.01216.48
7.0.100.0100.00316.39
7.0.90.0040.00916.46
7.0.80.0060.00916.65
7.0.70.0030.00916.46
7.0.60.0040.01216.39
7.0.50.0080.00616.52
7.0.40.0060.00616.67
7.0.30.0080.00816.81
7.0.20.0000.01316.60
7.0.10.0000.01316.81
7.0.00.0030.01016.43

preferences:
48.7 ms | 401 KiB | 5 Q