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"; }

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.0120.00918.55
8.3.60.0090.00616.75
8.3.50.0100.00816.77
8.3.40.0110.00718.84
8.3.30.0040.01118.67
8.3.20.0040.00420.38
8.3.10.0000.00823.55
8.3.00.0040.00422.03
8.2.190.0140.00316.63
8.2.180.0090.00618.41
8.2.170.0100.01022.96
8.2.160.0070.00719.16
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00821.25
8.2.120.0040.00426.35
8.2.110.0030.00722.42
8.2.100.0080.00417.84
8.2.90.0000.00819.28
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0030.00518.04
8.2.50.0030.00618.10
8.2.40.0090.00020.42
8.2.30.0030.00621.09
8.2.20.0040.00418.17
8.2.10.0080.00018.18
8.2.00.0040.00418.14
8.1.280.0120.00325.92
8.1.270.0000.00822.10
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0070.00422.04
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00517.38
8.1.180.0060.00318.10
8.1.170.0000.00818.82
8.1.160.0000.00718.89
8.1.150.0080.00020.70
8.1.140.0030.00619.61
8.1.130.0000.00718.85
8.1.120.0070.00017.60
8.1.110.0070.00017.61
8.1.100.0000.00917.61
8.1.90.0050.00217.51
8.1.80.0040.00417.65
8.1.70.0000.00717.60
8.1.60.0000.00817.71
8.1.50.0000.00817.57
8.1.40.0060.00317.73
8.1.30.0090.00017.88
8.1.20.0030.00517.81
8.1.10.0060.00317.68
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0000.00718.48
8.0.270.0040.00417.21
8.0.260.0070.00016.95
8.0.250.0000.00717.15
8.0.240.0000.00717.05
8.0.230.0030.00317.07
8.0.220.0040.00417.09
8.0.210.0030.00517.05
8.0.200.0030.00417.09
8.0.190.0050.00317.00
8.0.180.0030.00516.96
8.0.170.0040.00417.00
8.0.160.0000.00717.06
8.0.150.0000.00716.88
8.0.140.0040.00416.92
8.0.130.0000.00613.41
8.0.120.0000.00816.91
8.0.110.0050.00217.11
8.0.100.0070.00016.92
8.0.90.0040.00417.07
8.0.80.0030.01716.93
8.0.70.0060.00317.04
8.0.60.0040.00416.92
8.0.50.0040.00417.08
8.0.30.0060.01217.17
8.0.20.0100.00917.40
8.0.10.0000.00717.01
8.0.00.0140.00316.92
7.4.330.0000.00515.55
7.4.320.0000.00716.75
7.4.300.0070.00016.83
7.4.290.0030.00716.71
7.4.280.0030.00616.74
7.4.270.0000.00716.88
7.4.260.0000.00716.79
7.4.250.0040.00416.71
7.4.240.0000.00816.72
7.4.230.0040.00416.80
7.4.220.0070.01116.82
7.4.210.0100.00816.90
7.4.200.0030.00316.54
7.4.160.0060.01016.75
7.4.150.0090.01017.40
7.4.140.0130.00817.86
7.4.130.0040.01616.70
7.4.120.0070.01316.80
7.4.110.0160.00616.82
7.4.100.0110.00816.61
7.4.90.0100.01016.58
7.4.80.0090.01219.39
7.4.70.0060.00916.87
7.4.60.0080.01216.73
7.4.50.0060.01016.68
7.4.40.0150.00616.54
7.4.30.0060.01316.80
7.4.10.0080.01115.16
7.4.00.0070.01115.02
7.3.330.0000.00613.36
7.3.320.0030.00313.44
7.3.310.0000.00716.52
7.3.300.0070.00016.40
7.3.290.0040.00416.48
7.3.280.0070.01216.51
7.3.270.0150.00317.40
7.3.260.0090.00916.67
7.3.250.0060.01116.79
7.3.240.0150.00716.67
7.3.230.0150.00716.72
7.3.210.0080.00916.59
7.3.200.0030.01316.40
7.3.190.0110.00716.73
7.3.180.0000.01616.61
7.3.170.0160.00016.88
7.3.160.0100.00716.88
7.3.130.0070.01115.04
7.3.120.0080.00914.86
7.3.110.0070.01315.19
7.3.100.0030.00915.13
7.3.90.0040.01414.92
7.3.80.0040.01115.14
7.3.70.0060.00614.95
7.3.60.0120.00214.95
7.3.50.0040.00815.00
7.3.40.0080.00214.90
7.3.30.0070.01014.95
7.3.20.0070.00416.68
7.3.10.0070.00716.77
7.3.00.0090.00716.87
7.2.330.0150.00316.93
7.2.320.0000.01816.87
7.2.310.0090.01016.68
7.2.300.0070.01016.73
7.2.290.0160.00416.89
7.2.260.0090.01115.40
7.2.250.0050.01315.30
7.2.240.0080.00715.14
7.2.230.0070.01015.07
7.2.220.0080.00815.22
7.2.210.0020.01215.06
7.2.200.0070.00315.27
7.2.190.0070.00615.20
7.2.180.0070.00715.14
7.2.170.0110.00315.10
7.2.160.0080.00715.20
7.2.150.0050.00816.96
7.2.140.0060.00717.09
7.2.130.0060.00816.80
7.2.120.0030.01117.13
7.2.110.0070.01216.96
7.2.100.0050.00917.00
7.2.90.0070.00817.01
7.2.80.0060.00917.03
7.2.70.0050.00617.18
7.2.60.0080.00817.10
7.2.50.0010.01117.07
7.2.40.0040.00916.96
7.2.30.0050.00916.88
7.2.20.0050.01217.10
7.2.10.0100.00616.89
7.2.00.0040.00617.15
7.1.330.0020.01216.08
7.1.320.0030.00916.02
7.1.310.0060.00716.15
7.1.300.0070.00715.63
7.1.290.0030.00615.85
7.1.280.0100.00516.12
7.1.270.0050.00915.81
7.1.260.0060.00516.00
7.1.250.0040.01115.88
7.1.240.0090.00716.04
7.1.230.0050.00716.06
7.1.220.0050.00715.92
7.1.210.0070.00616.11
7.1.200.0080.00615.92
7.1.190.0040.01015.95
7.1.180.0050.01115.90
7.1.170.0020.00815.89
7.1.160.0090.00615.92
7.1.150.0060.00615.92
7.1.140.0050.01216.00
7.1.130.0040.00916.09
7.1.120.0050.00816.00
7.1.110.0020.00816.10
7.1.100.0050.00815.86
7.1.90.0040.00716.12
7.1.80.0100.00315.99
7.1.70.0080.00616.42
7.1.60.0120.00822.42
7.1.50.0110.00622.28
7.1.40.0090.00622.12
7.1.30.0140.00422.29
7.1.20.0090.00722.30
7.1.10.0050.00716.23
7.1.00.0020.01016.26
7.0.330.0060.00915.50
7.0.320.0050.00715.60
7.0.310.0060.00615.58
7.0.300.0060.00815.65
7.0.290.0060.00915.63
7.0.280.0070.00715.56
7.0.270.0050.00415.43
7.0.260.0060.00615.57
7.0.250.0050.00715.75
7.0.240.0040.00815.54
7.0.230.0070.00515.52
7.0.220.0060.00515.60
7.0.210.0120.00215.66
7.0.200.0040.01016.10
7.0.190.0040.00716.09
7.0.180.0040.00715.83
7.0.170.0030.00915.79
7.0.160.0050.00915.78
7.0.150.0030.00816.00
7.0.140.0050.00515.94
7.0.130.0040.00915.90
7.0.120.0080.00615.86
7.0.110.0100.00215.95
7.0.100.0040.00715.93
7.0.90.0030.01015.96
7.0.80.0050.00615.80
7.0.70.0020.01015.96
7.0.60.0070.00615.85
7.0.50.0080.00416.09
7.0.40.0040.00514.70
7.0.30.0030.00714.68
7.0.20.0030.00914.63
7.0.10.0050.00814.66
7.0.00.0050.01014.61
5.6.400.0000.00914.56
5.6.390.0080.00714.47
5.6.380.0080.00514.44
5.6.370.0070.00314.38
5.6.360.0050.00814.45
5.6.350.0030.01114.37
5.6.340.0060.00614.23
5.6.330.0030.00814.27
5.6.320.0050.00914.42
5.6.310.0060.00914.45
5.6.300.0080.00714.41
5.6.290.0060.00614.35
5.6.280.0040.01114.25
5.6.270.0020.01214.36
5.6.260.0020.00914.46
5.6.250.0040.00514.35
5.6.240.0030.00914.31
5.6.230.0030.01114.42
5.6.220.0040.00614.42
5.6.210.0080.00314.54
5.6.200.0050.00914.33
5.6.190.0040.00614.35
5.6.180.0060.00814.29
5.6.170.0070.00514.45
5.6.160.0050.01214.46
5.6.150.0040.01114.39
5.6.140.0020.01014.48
5.6.130.0100.00314.27
5.6.120.0040.00614.41
5.6.110.0060.00514.24
5.6.100.0030.00814.45
5.6.90.0020.00814.64
5.6.80.0050.00914.37
5.6.70.0060.00614.15
5.6.60.0090.00514.07
5.6.50.0050.01014.48
5.6.40.0020.01014.43
5.6.30.0040.00914.29
5.6.20.0050.00814.16
5.6.10.0110.00214.08
5.6.00.0090.00514.29

preferences:
37.24 ms | 401 KiB | 5 Q