3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Address = "/clanek/12345/komentare"; $Map = array( "/clanky" => "Clanky.php", "/clanek/([^/]*)" => "Blog.php", "/clanek/([^/]*)/komentare" => "Blog.php", "/" => "Main.php" ); foreach ($Map as $Key => $Value) { if (preg_match('~^'.str_replace('~', '\~', $Key).'$~', $Address, $Matches)) { echo "Obsauje: $Key\n"; var_dump($Matches); } }

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.00416.73
8.3.50.0070.00716.49
8.3.40.0150.00318.84
8.3.30.0110.00419.02
8.3.20.0000.00720.34
8.3.10.0030.00521.77
8.3.00.0070.00317.93
8.2.180.0170.00316.63
8.2.170.0030.01619.16
8.2.160.0110.00422.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00422.13
8.2.120.0000.00826.35
8.2.110.0000.00919.27
8.2.100.0090.00317.72
8.2.90.0030.00517.88
8.2.80.0080.00019.08
8.2.70.0000.00817.88
8.2.60.0000.00917.63
8.2.50.0050.00317.75
8.2.40.0090.00019.52
8.2.30.0040.00419.38
8.2.20.0000.00818.14
8.2.10.0070.00018.41
8.2.00.0000.00718.38
8.1.280.0110.00725.92
8.1.270.0080.00024.66
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0090.00019.25
8.1.230.0000.01219.23
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0040.00417.11
8.1.180.0060.00318.10
8.1.170.0040.00419.03
8.1.160.0000.00718.82
8.1.150.0040.00420.04
8.1.140.0060.00317.55
8.1.130.0080.00019.08
8.1.120.0000.00717.55
8.1.110.0000.00717.61
8.1.100.0030.00617.53
8.1.90.0030.00517.56
8.1.80.0040.00417.49
8.1.70.0070.00017.62
8.1.60.0000.00817.64
8.1.50.0000.00717.62
8.1.40.0070.00417.61
8.1.30.0030.00517.82
8.1.20.0040.00417.80
8.1.10.0040.00417.67
8.1.00.0000.00817.57
8.0.300.0050.00218.77
8.0.290.0090.00016.88
8.0.280.0070.00018.45
8.0.270.0070.00016.89
8.0.260.0030.00320.81
8.0.250.0000.00817.11
8.0.240.0070.00017.09
8.0.230.0040.00417.10
8.0.220.0000.00717.07
8.0.210.0040.00417.04
8.0.200.0000.00816.98
8.0.190.0050.00217.10
8.0.180.0000.00717.09
8.0.170.0000.00716.94
8.0.160.0000.00717.07
8.0.150.0060.00316.89
8.0.140.0000.00717.05
8.0.130.0030.00313.54
8.0.120.0000.00716.87
8.0.110.0040.00416.98
8.0.100.0000.00817.02
8.0.90.0030.00517.13
8.0.80.0040.01117.01
8.0.70.0040.00416.98
8.0.60.0070.00016.93
8.0.50.0050.00316.99
8.0.30.0120.00717.38
8.0.20.0090.01017.43
8.0.10.0030.00617.14
8.0.00.0170.00316.80
7.4.330.0070.00015.55
7.4.320.0000.00716.71
7.4.300.0060.00016.81
7.4.290.0000.00816.70
7.4.280.0050.00316.69
7.4.270.0030.00516.66
7.4.260.0030.00716.70
7.4.250.0030.00316.80
7.4.240.0040.00416.71
7.4.230.0030.00316.55
7.4.220.0040.01216.85
7.4.210.0040.01116.84
7.4.200.0040.00416.82
7.4.160.0100.01216.42
7.4.150.0110.00717.40
7.4.140.0090.01017.86
7.4.130.0090.00816.72
7.4.120.0080.01216.79
7.4.110.0090.00916.77
7.4.100.0170.00016.64
7.4.90.0150.00316.71
7.4.80.0120.01219.39
7.4.70.0100.00616.63
7.4.60.0100.01016.80
7.4.50.0110.00716.77
7.4.40.0100.00616.77
7.4.30.0030.01316.55
7.4.00.0080.00415.07
7.3.330.0000.00513.21
7.3.320.0020.00213.22
7.3.310.0030.00516.46
7.3.300.0030.00316.31
7.3.290.0060.00816.45
7.3.280.0100.00816.48
7.3.270.0070.01017.40
7.3.260.0090.01016.76
7.3.250.0080.01016.49
7.3.240.0150.00516.57
7.3.230.0100.01016.72
7.3.210.0060.01316.45
7.3.200.0130.00316.77
7.3.190.0170.00016.67
7.3.180.0130.00416.81
7.3.170.0000.01516.78
7.3.160.0000.01616.45
7.3.10.0030.00916.96
7.3.00.0080.00316.89
7.2.330.0130.00316.91
7.2.320.0090.00916.68
7.2.310.0060.01216.99
7.2.300.0140.00416.89
7.2.290.0110.01116.71
7.2.130.0040.00717.14
7.2.120.0090.00617.09
7.2.110.0060.00616.94
7.2.100.0000.01216.92
7.2.90.0000.01417.19
7.2.80.0070.00716.76
7.2.70.0040.01116.96
7.2.60.0020.01217.01
7.2.50.0070.00617.01
7.2.40.0070.00717.18
7.2.30.0060.00916.98
7.2.20.0000.01416.86
7.2.10.0000.01117.04
7.2.00.0080.00417.12
7.1.250.0000.00915.86
7.1.200.0090.00316.08
7.1.70.0070.00317.43
7.1.60.0090.00317.64
7.1.40.0230.01034.54
7.1.30.0170.01334.70
7.1.20.0170.01034.71
7.1.10.0100.00316.88
7.1.00.0070.00716.92
7.0.200.0070.01016.61
7.0.180.0000.01016.44
7.0.170.0000.01316.27
7.0.160.0030.01016.34
7.0.150.0030.01016.18
7.0.140.0030.01016.42
7.0.130.0000.01016.77
7.0.120.0000.01016.53
7.0.110.0100.00316.43
7.0.100.0000.01316.45
7.0.90.0030.00716.41
7.0.80.0030.00716.38
7.0.70.0070.00716.38
7.0.60.0000.01016.46
7.0.50.0070.00316.52
7.0.40.0030.00716.64
7.0.30.0070.00316.66
7.0.20.0030.00716.58
7.0.10.0000.01016.57
7.0.00.0100.00316.46

preferences:
37.17 ms | 400 KiB | 5 Q