3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($str){ var_dump($str); var_dump( preg_match_all( '{^(https?://)?([^/\n]+)}', $str, $matches ) ); var_dump($matches); } $strArray = [ 'http://www.answers.com/article/1194427/8-habits-of-extraordinarily-likeable-people', 'https://www.apple.com', 'https://www.apple .com', 'https://www.apple', 'http://www.cnn.com.au', 'http://downloads.news.com.au', 'http://ftp.android.co.nz', 'http://global.news.ca', 'http://www.apple.com', 'apple.com', 'www.apple.com', ]; foreach($strArray as $str){ foo($str); echo '---------------------------------------------'; }

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.0080.00818.56
8.3.60.0130.00718.43
8.3.50.0030.01318.19
8.3.40.0070.01519.02
8.3.30.0090.00618.79
8.3.20.0070.00719.25
8.3.10.0040.00423.49
8.3.00.0040.00420.77
8.2.180.0030.01318.31
8.2.170.0130.00322.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0050.00318.09
8.2.120.0040.00426.35
8.2.110.0110.00022.23
8.2.100.0090.00318.03
8.2.90.0030.00518.03
8.2.80.0060.00319.14
8.2.70.0030.00617.93
8.2.60.0080.00018.16
8.2.50.0040.00418.10
8.2.40.0040.00419.38
8.2.30.0000.00819.34
8.2.20.0040.00418.13
8.2.10.0040.00417.98
8.2.00.0040.00417.70
8.1.280.0160.00625.92
8.1.270.0060.00918.89
8.1.260.0000.01026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.79
8.1.230.0120.00022.67
8.1.220.0000.00817.74
8.1.210.0030.00618.84
8.1.200.0000.00917.38
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.62
8.1.160.0030.00618.81
8.1.150.0000.00818.98
8.1.140.0020.00522.24
8.1.130.0040.00420.37
8.1.120.0000.00717.64
8.1.110.0000.00817.52
8.1.100.0090.00017.53
8.1.90.0000.00917.64
8.1.80.0040.00417.52
8.1.70.0040.00417.64
8.1.60.0060.00317.73
8.1.50.0040.00417.71
8.1.40.0000.00817.61
8.1.30.0070.00317.84
8.1.20.0040.00417.71
8.1.10.0080.00017.69
8.1.00.0030.00617.59
8.0.300.0040.00421.96
8.0.290.0040.00416.88
8.0.280.0040.00418.50
8.0.270.0090.00017.36
8.0.260.0000.00718.36
8.0.250.0000.00717.14
8.0.240.0000.00717.14
8.0.230.0040.00417.10
8.0.220.0000.00716.93
8.0.210.0050.00317.02
8.0.200.0030.00317.17
8.0.190.0060.00617.16
8.0.180.0040.00416.96
8.0.170.0060.00317.05
8.0.160.0070.00017.03
8.0.150.0030.00516.91
8.0.140.0040.00316.91
8.0.130.0030.00313.47
8.0.120.0040.00416.89
8.0.110.0040.00417.08
8.0.100.0000.00816.94
8.0.90.0000.00817.00
8.0.80.0130.00817.03
8.0.70.0070.00017.02
8.0.60.0030.00617.11
8.0.50.0030.00517.04
8.0.30.0100.01017.25
8.0.20.0110.00917.46
8.0.10.0030.00517.17
8.0.00.0160.00516.91
7.4.330.0020.00215.55
7.4.320.0000.00716.75
7.4.300.0000.00716.82
7.4.290.0040.00416.87
7.4.280.0000.00716.65
7.4.270.0040.00416.71
7.4.260.0040.00416.71
7.4.250.0040.00416.79
7.4.240.0060.00316.74
7.4.230.0000.00716.48
7.4.220.0060.00316.93
7.4.210.0100.00616.84
7.4.200.0040.00416.88
7.4.160.0120.00716.68
7.4.140.0120.00817.86
7.4.130.0210.00016.53
7.4.120.0110.01016.79
7.4.110.0130.01316.76
7.4.100.0090.00916.89
7.4.90.0140.00716.81
7.4.80.0070.01419.39
7.4.70.0110.00816.72
7.4.60.0140.00416.79
7.4.50.0100.00716.70
7.4.40.0060.01116.55
7.3.330.0000.00513.46
7.3.320.0060.00013.40
7.3.310.0100.00016.55
7.3.300.0030.00316.32
7.3.290.0050.00216.43
7.3.280.0110.00716.44
7.3.260.0100.01116.54
7.3.240.0160.00716.76
7.3.230.0110.00816.70
7.3.210.0040.01416.80
7.3.200.0060.01216.75
7.3.190.0060.01216.61
7.3.180.0090.00916.61
7.3.170.0130.00616.41
7.3.160.0080.01116.65
7.2.330.0070.01116.72
7.2.320.0100.01016.71
7.2.310.0170.00716.86
7.2.300.0090.00916.91
7.2.290.0120.00616.92

preferences:
66.97 ms | 400 KiB | 5 Q