3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url_liste = "http://www.kijiji.ca/b-autos-camions/grand-montreal/suv+vgm-bmw-x5-2001__2009/c174l80002a138a54a1000054a68?sort=priceAsc&price=2000.00__40000.00&kilometres=10000__110000"; $html_liste = "<td class=\"description\"><a href=\"/v-autos-camions/ville-de-montreal/2008-bmw-x5-suv/568081363\" class=\"title enable-search-navigation-flag\" name=\"568081363\">2008 BMW X5 SUV</a><p>"; $regex_a = '/<a(.*)</a>/'; preg_match($regex_a, $html_liste, $matches); echo $matches[1]; // 1234 $regex_no = '/name="(\d+)"/'; $url_fiche = "href=\"/v-autos-camions/ville-de-montreal/2008-bmw-x5-suv/568081363\"" preg_match($regex_no, $url_fiche, $matches); echo $matches[1]; // 1234

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)
5.4.260.0100.07018.78
5.4.250.0100.05018.94
5.4.240.0130.04718.96
5.4.230.0170.04318.93
5.4.220.0000.06018.64
5.4.210.0170.05318.73
5.4.200.0030.05318.78
5.4.190.0030.05718.72
5.4.180.0070.05019.04
5.4.170.0030.06718.79
5.4.160.0170.07019.00
5.4.150.0030.06318.95
5.4.140.0200.06016.43
5.4.130.0130.04316.35
5.4.120.0100.05016.39
5.4.110.0200.04016.48
5.4.100.0100.04316.51
5.4.90.0100.04316.48
5.4.80.0130.06716.40
5.4.70.0070.05016.34
5.4.60.0000.05316.36
5.4.50.0070.04716.38
5.4.40.0100.06016.51
5.4.30.0070.04716.45
5.4.20.0100.06016.45
5.4.10.0030.05316.44
5.4.00.0030.06715.93
5.3.280.0070.05014.60
5.3.270.0100.07014.49
5.3.260.0030.06014.61
5.3.250.0070.05314.70
5.3.240.0070.05014.62
5.3.230.0070.05014.60
5.3.220.0070.05014.58
5.3.210.0100.07714.59
5.3.200.0070.05714.61
5.3.190.0100.05014.59
5.3.180.0100.05314.45
5.3.170.0130.04314.42
5.3.160.0170.05014.59
5.3.150.0030.05314.58
5.3.140.0130.04014.57
5.3.130.0100.05014.41
5.3.120.0030.06014.39
5.3.110.0170.07014.70
5.3.100.0100.05013.92
5.3.90.0070.05714.03
5.3.80.0100.05013.80
5.3.70.0130.05314.07
5.3.60.0100.05013.78
5.3.50.0070.05013.97
5.3.40.0130.06313.79
5.3.30.0030.05313.82
5.3.20.0100.04713.75
5.3.10.0100.05313.70
5.3.00.0070.06013.57
5.2.170.0030.04310.98
5.2.160.0000.04710.99
5.2.150.0030.04311.05
5.2.140.0070.04011.07
5.2.130.0070.03710.99
5.2.120.0100.03310.86
5.2.110.0030.04011.11
5.2.100.0100.03710.98
5.2.90.0030.04011.25
5.2.80.0030.04311.08
5.2.70.0100.04711.02
5.2.60.0100.03311.07
5.2.50.0030.04011.12
5.2.40.0030.04010.76
5.2.30.0130.04710.73
5.2.20.0070.04311.11
5.2.10.0070.04010.84
5.2.00.0070.03710.66
5.1.60.0030.03310.14
5.1.50.0000.04710.20
5.1.40.0000.04010.02
5.1.30.0070.03310.41
5.1.20.0070.03710.24
5.1.10.0030.03710.18
5.1.00.0070.04310.01
5.0.50.0100.0338.42
5.0.40.0100.0208.38
5.0.30.0070.0578.15
5.0.20.0130.0238.14
5.0.10.0000.0338.23
5.0.00.0130.0378.13
4.4.90.0100.0205.79
4.4.80.0000.0235.75
4.4.70.0100.0175.84
4.4.60.0030.0235.75
4.4.50.0030.0205.77
4.4.40.0070.0335.78
4.4.30.0030.0275.76
4.4.20.0070.0205.80
4.4.10.0000.0235.80
4.4.00.0070.0335.82
4.3.110.0000.0335.70
4.3.100.0030.0205.73
4.3.90.0030.0275.66
4.3.80.0070.0435.69
4.3.70.0070.0235.70
4.3.60.0070.0175.69
4.3.50.0070.0175.68
4.3.40.0030.0305.71
4.3.30.0030.0205.29
4.3.20.0070.0175.29
4.3.10.0000.0235.61
4.3.00.0100.0206.57

preferences:
139.83 ms | 1394 KiB | 7 Q