3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP $paths = [ '.*/cars$', '^cars/.*/', '/trucks$', '.*/trucks$' ]; $url = 'some-site.com/cars'; foreach($paths AS $v) { if (preg_match('~'.$v.'~', $url, $out)) { echo $v.' matched this part of $url: '.$out[0]; break; } } ?>

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.130.0040.00418.57
8.3.120.0080.00020.67
8.3.110.0050.00320.94
8.3.100.0040.00824.06
8.3.90.0030.00626.77
8.3.80.0090.00018.43
8.3.70.0110.00316.58
8.3.60.0070.01618.40
8.3.50.0110.00716.58
8.3.40.0060.00918.93
8.3.30.0090.00618.79
8.3.20.0040.00421.73
8.3.10.0050.00319.14
8.3.00.0000.00821.84
8.2.250.0070.00718.77
8.2.240.0090.00016.76
8.2.230.0060.00622.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0090.00616.63
8.2.180.0070.01125.92
8.2.170.0030.01222.96
8.2.160.0070.00720.35
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.79
8.2.110.0090.00019.30
8.2.100.0090.00317.97
8.2.90.0030.00617.75
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0040.00417.75
8.2.50.0040.00417.88
8.2.40.0050.00319.39
8.2.30.0080.00019.22
8.2.20.0040.00418.07
8.2.10.0030.00518.95
8.2.00.0040.00419.27
8.1.300.0090.00016.44
8.1.290.0090.00030.84
8.1.280.0040.01525.92
8.1.270.0030.00722.39
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0000.00922.62
8.1.230.0080.00419.55
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0080.00017.53
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0060.00318.63
8.1.160.0070.00018.88
8.1.150.0040.00418.96
8.1.140.0080.00020.70
8.1.130.0070.00020.15
8.1.120.0100.00017.63
8.1.110.0040.00417.62
8.1.100.0050.00317.63
8.1.90.0050.00517.57
8.1.80.0000.00717.63
8.1.70.0060.00317.62
8.1.60.0040.00717.75
8.1.50.0040.00417.60
8.1.40.0000.00817.64
8.1.30.0040.00717.77
8.1.20.0000.00817.69
8.1.10.0030.00617.79
8.1.00.0040.00717.55
8.0.300.0040.00418.78
8.0.290.0000.00816.75
8.0.280.0070.00018.40
8.0.270.0040.00416.95
8.0.260.0000.00618.47
8.0.250.0030.00617.02
8.0.240.0070.00017.06
8.0.230.0000.00917.05
8.0.220.0030.00316.93
8.0.210.0030.00316.93
8.0.200.0030.00316.98
8.0.190.0030.00516.99
8.0.180.0080.00017.00
8.0.170.0040.00417.04
8.0.160.0040.00417.00
8.0.150.0000.00717.07
8.0.140.0030.00316.93
8.0.130.0030.00313.55
8.0.120.0000.00816.91
8.0.110.0040.00416.86
8.0.100.0040.00417.02
8.0.90.0040.00416.98
8.0.80.0070.01117.04
8.0.70.0050.00217.10
8.0.60.0040.00416.91
8.0.50.0000.00816.83
8.0.30.0100.00817.32
8.0.20.0130.00717.26
8.0.10.0040.00417.03
8.0.00.0110.00917.03
7.4.330.0050.00015.55
7.4.320.0000.00716.63
7.4.300.0080.00016.76
7.4.290.0000.00716.82
7.4.280.0000.00716.74
7.4.270.0000.00716.73
7.4.260.0000.00716.69
7.4.250.0000.00716.63
7.4.240.0060.00316.67
7.4.230.0070.00016.59
7.4.220.0040.00416.56
7.4.210.0040.01216.84
7.4.200.0040.00416.55
7.4.140.0070.01017.86
7.4.130.0140.00316.66
7.4.120.0080.01116.71
7.4.110.0100.00616.63
7.4.100.0100.00716.49
7.4.90.0100.01516.60
7.4.80.0030.01419.39
7.4.70.0140.00416.76
7.4.60.0110.00516.70
7.4.50.0070.01016.59
7.4.40.0030.01316.60
7.4.00.0040.01114.79
7.3.330.0000.00513.46
7.3.320.0060.00013.30
7.3.310.0030.00316.37
7.3.300.0060.00016.39
7.3.290.0070.00716.45
7.3.280.0070.00716.44
7.3.260.0090.01016.54
7.3.240.0070.01316.53
7.3.230.0090.01216.53
7.3.210.0110.00716.64
7.3.200.0100.01016.75
7.3.190.0110.00816.55
7.3.180.0070.01116.49
7.3.170.0060.00916.67
7.3.160.0060.01016.71
7.3.50.0090.00615.10
7.3.40.0170.00715.09
7.3.30.0050.01415.13
7.3.20.0090.00914.66
7.3.10.0250.00014.71
7.3.00.0030.01314.91
7.2.330.0090.00916.73
7.2.320.0140.00416.95
7.2.310.0100.00716.75
7.2.300.0060.01316.91
7.2.290.0100.00616.84
7.2.180.0070.00715.00
7.2.170.0060.00915.39
7.2.160.0080.00515.21
7.2.150.0110.00515.07
7.2.140.0100.00315.29
7.2.130.0140.00515.08
7.2.120.0120.01015.14
7.2.110.0080.00515.29
7.2.100.0070.00715.08
7.2.90.0100.00715.07
7.2.80.0090.00614.99
7.2.70.0190.00614.94
7.2.60.0100.00615.28
7.2.50.0160.00315.37
7.2.40.0950.01015.46
7.2.30.0160.01015.17
7.2.20.0170.00915.32
7.2.10.0110.00315.40
7.2.00.0040.01114.97
7.1.280.0130.01113.94
7.1.270.0030.01014.11
7.1.260.0120.00314.37
7.1.250.0060.00613.89

preferences:
28.01 ms | 403 KiB | 5 Q