3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = array( "http://backend_dev.ms.ji-dev1.bgcc.at/", "asdf.bc", "http://google.at", "www.google.at", "https://service.justimmo.at/objekt" ); foreach ($urls as $url) { echo "\n"; if (filter_var($url, FILTER_VALIDATE_URL) === false) { echo("$url ########################### INVALID"); } else { echo("$url -- VALID"); } echo "\n"; var_dump(is_url($url)); } function is_url($uri){ if(preg_match( '/^(http|https):\\/\\/[a-z0-9_]+([\\-\\.]{1}[a-z_0-9]+)*\\.[_a-z]{2,5}'.'((:[0-9]{1,5})?\\/.*)?$/i' ,$uri)){ return $uri . " -- VALID"; } else{ return false; } }

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.00916.75
8.3.60.0120.00916.88
8.3.50.0080.01222.10
8.3.40.0120.00318.63
8.3.30.0110.00418.96
8.3.20.0080.00020.64
8.3.10.0080.00021.73
8.3.00.0080.00021.89
8.2.180.0110.00716.50
8.2.170.0060.00922.96
8.2.160.0100.00320.24
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0080.00019.77
8.2.120.0070.00026.35
8.2.110.0060.00322.33
8.2.100.0160.00017.72
8.2.90.0060.00317.88
8.2.80.0080.00017.97
8.2.70.0080.00017.92
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0030.00619.42
8.2.30.0040.00421.10
8.2.20.0030.00518.13
8.2.10.0040.00418.20
8.2.00.0000.00717.82
8.1.280.0120.00925.92
8.1.270.0060.00323.82
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0070.00323.91
8.1.230.0040.00823.88
8.1.220.0030.00517.76
8.1.210.0000.00818.77
8.1.200.0000.01017.48
8.1.190.0080.00017.48
8.1.180.0000.00818.10
8.1.170.0030.00618.97
8.1.160.0000.00722.27
8.1.150.0070.00018.89
8.1.140.0050.00319.59
8.1.130.0040.00417.70
8.1.120.0000.00717.63
8.1.110.0030.00617.60
8.1.100.0040.00417.60
8.1.90.0040.00417.55
8.1.80.0000.00817.61
8.1.70.0030.00317.58
8.1.60.0030.00717.74
8.1.50.0030.00617.64
8.1.40.0040.00417.55
8.1.30.0080.00017.84
8.1.20.0080.00017.77
8.1.10.0000.00817.57
8.1.00.0040.00417.50
8.0.300.0040.00419.85
8.0.290.0090.00016.63
8.0.280.0040.00418.52
8.0.270.0030.00317.25
8.0.260.0070.00017.23
8.0.250.0000.00717.15
8.0.240.0000.00717.09
8.0.230.0000.00717.00
8.0.220.0070.00017.16
8.0.210.0050.00217.09
8.0.200.0000.00717.12
8.0.190.0000.00717.00
8.0.180.0030.00917.08
8.0.170.0040.00417.04
8.0.160.0080.00017.01
8.0.150.0000.00717.03
8.0.140.0000.00717.03
8.0.130.0000.00613.47
8.0.120.0060.00317.05
8.0.110.0090.00017.07
8.0.100.0040.00417.11
8.0.90.0040.00417.16
8.0.80.0080.00817.16
8.0.70.0090.00017.09
8.0.60.0050.00317.11
8.0.50.0050.00317.13
8.0.30.0100.00917.32
8.0.20.0080.01217.46
8.0.10.0030.00517.12
8.0.00.0070.01117.15
7.4.330.0000.00615.55
7.4.320.0000.00616.88
7.4.300.0000.00616.64
7.4.290.0000.00916.77
7.4.280.0100.00016.93
7.4.270.0000.00716.84
7.4.260.0090.00316.86
7.4.250.0070.00016.61
7.4.240.0080.00016.87
7.4.230.0000.00716.82
7.4.220.0120.00816.78
7.4.210.0060.01016.98
7.4.200.0030.00316.99
7.4.160.0170.00216.80
7.4.150.0110.00717.40
7.4.140.0110.00817.86
7.4.130.0090.00916.67
7.4.120.0080.01216.80
7.4.110.0070.01116.73
7.4.100.0080.00816.80
7.4.90.0120.01216.81
7.4.80.0100.00719.39
7.4.70.0090.01016.57
7.4.60.0090.00916.71
7.4.50.0070.00716.61
7.4.40.0110.00616.73
7.4.30.0130.00316.61
7.4.00.0000.00814.97
7.3.330.0000.00613.26
7.3.320.0020.00213.28
7.3.310.0080.00016.49
7.3.300.0000.00816.51
7.3.290.0080.00816.50
7.3.280.0120.00816.46
7.3.270.0090.00917.40
7.3.260.0090.01016.75
7.3.250.0080.01016.58
7.3.240.0080.00916.48
7.3.230.0170.00716.83
7.3.210.0090.00916.76
7.3.200.0060.00916.73
7.3.190.0110.00616.70
7.3.180.0170.00016.70
7.3.170.0090.01516.67
7.3.160.0100.01316.95
7.2.330.0120.00616.84
7.2.320.0150.00316.57
7.2.310.0150.00616.81
7.2.300.0160.00816.91
7.2.290.0070.01017.00
7.2.60.0030.01017.27
7.1.200.0040.00816.09
7.1.100.0040.00818.35
7.1.70.0000.00817.40
7.1.60.0030.00717.13
7.1.50.0100.01316.90
7.1.00.0100.07022.56
7.0.200.0280.00714.61
7.0.120.0330.07020.24
7.0.110.0230.06020.25
7.0.100.0430.06320.24
7.0.90.0330.07020.32
7.0.80.0300.08020.33
7.0.70.0330.05020.28
7.0.60.0230.05720.20
7.0.50.0400.04720.20
7.0.40.0370.05720.20
7.0.32.5230.07713.78
7.0.20.0400.07320.32
7.0.10.0500.07020.32
7.0.00.0330.08020.32
5.6.270.0200.05720.89
5.6.260.0200.05720.85
5.6.250.0200.07321.12
5.6.240.0130.07320.98
5.6.230.0100.06320.83
5.6.220.0100.05720.99
5.6.210.0100.08020.88
5.6.200.0070.07021.00
5.6.190.0030.06321.03
5.6.180.0130.05721.02
5.6.170.0200.06720.75
5.6.160.0200.07321.02
5.6.150.0200.07321.04
5.6.140.0230.06720.75
5.6.130.0230.06321.04
5.6.120.0170.06720.89
5.6.110.0270.07720.74
5.6.100.0130.08020.92
5.6.90.0170.05721.01
5.6.80.0130.06320.38
5.6.70.0170.06320.13
5.6.60.0300.07020.18
5.6.50.0170.07320.30
5.6.40.0070.08320.44
5.6.30.0170.07720.21
5.6.20.0170.06320.35
5.6.10.0200.05320.37
5.6.00.0170.05020.40

preferences:
56.88 ms | 401 KiB | 5 Q