3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needle = 'www'; $sentence = 'This www.google.com is the http://www.facebook.com website that https://www.amazon.com make me awesome'; if(preg_match('/\b(' . preg_quote($needle, '/') . '\w+)/', $sentence, $match)){ echo "<pre>"; print_r($match); echo "</pre>"; }

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.0130.00616.88
8.3.50.0110.00416.43
8.3.40.0140.00418.77
8.3.30.0070.01018.79
8.3.20.0040.00420.34
8.3.10.0040.00422.04
8.3.00.0040.00423.21
8.2.180.0140.00718.54
8.2.170.0120.00922.96
8.2.160.0100.00619.29
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00021.18
8.2.120.0080.00026.35
8.2.110.0070.00320.45
8.2.100.0060.00617.90
8.2.90.0040.00419.26
8.2.80.0070.00019.41
8.2.70.0000.00817.75
8.2.60.0030.00617.91
8.2.50.0080.00018.22
8.2.40.0000.00720.47
8.2.30.0030.00519.26
8.2.20.0000.00817.96
8.2.10.0040.00418.11
8.2.00.0000.00717.99
8.1.280.0120.00925.92
8.1.270.0030.00522.23
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00022.74
8.1.230.0040.00820.21
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0000.00818.49
8.1.160.0050.00218.83
8.1.150.0030.00520.20
8.1.140.0000.00819.66
8.1.130.0030.00318.97
8.1.120.0040.00417.60
8.1.110.0030.00617.59
8.1.100.0040.00417.49
8.1.90.0050.00217.61
8.1.80.0040.00417.62
8.1.70.0000.00717.53
8.1.60.0070.00417.76
8.1.50.0000.00817.68
8.1.40.0000.00717.55
8.1.30.0040.00417.83
8.1.20.0040.00417.67
8.1.10.0040.00417.64
8.1.00.0050.00317.63
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0000.00817.23
8.0.260.0000.00618.91
8.0.250.0030.00317.05
8.0.240.0050.00316.97
8.0.230.0060.00317.07
8.0.220.0040.00417.00
8.0.210.0030.00317.07
8.0.200.0000.00617.09
8.0.190.0040.00417.10
8.0.180.0070.00017.09
8.0.170.0000.00817.04
8.0.160.0040.00417.07
8.0.150.0040.00416.95
8.0.140.0000.00717.00
8.0.130.0040.00413.46
8.0.120.0000.00817.01
8.0.110.0040.00417.08
8.0.100.0000.00816.94
8.0.90.0070.00016.95
8.0.80.0040.01117.01
8.0.70.0040.00417.04
8.0.60.0040.00416.92
8.0.50.0050.00216.91
8.0.30.0100.00817.13
8.0.20.0140.00517.40
8.0.10.0000.00716.95
8.0.00.0100.00717.16
7.4.330.0000.00515.55
7.4.320.0030.00316.65
7.4.300.0030.00316.66
7.4.290.0040.00416.77
7.4.280.0030.00716.64
7.4.270.0030.00316.64
7.4.260.0070.00016.62
7.4.250.0050.00216.71
7.4.240.0000.00816.63
7.4.230.0000.00716.63
7.4.220.0150.00416.70
7.4.210.0040.01216.68
7.4.200.0000.00816.60
7.4.160.0090.00616.64
7.4.150.0140.00417.40
7.4.140.0110.00917.86
7.4.130.0090.00916.77
7.4.120.0130.00616.61
7.4.110.0060.01116.70
7.4.100.0110.00616.66
7.4.90.0160.00616.49
7.4.80.0090.00919.39
7.4.70.0120.00316.55
7.4.60.0100.00716.64
7.4.50.0050.00616.54
7.4.40.0040.01716.55
7.4.30.0070.01016.74
7.4.00.0090.00615.04
7.3.330.0000.00513.10
7.3.320.0050.00013.33
7.3.310.0000.00616.29
7.3.300.0000.00716.26
7.3.290.0150.00316.34
7.3.280.0090.00716.34
7.3.270.0120.00617.40
7.3.260.0100.01116.56
7.3.250.0080.00916.50
7.3.240.0090.00716.65
7.3.230.0110.01216.63
7.3.210.0120.00616.34
7.3.200.0150.00716.38
7.3.190.0120.00416.71
7.3.180.0100.00616.34
7.3.170.0110.00516.38
7.3.160.0110.01416.46
7.3.10.0080.00516.85
7.3.00.0050.00716.75
7.2.330.0090.00916.62
7.2.320.0060.01316.74
7.2.310.0130.00316.63
7.2.300.0140.00716.54
7.2.290.0070.01016.73
7.2.130.0040.00916.99
7.2.120.0040.01016.88
7.2.110.0070.00516.95
7.2.100.0050.01116.95
7.2.90.0080.00816.92
7.2.80.0040.01116.99
7.2.70.0050.00816.92
7.2.60.0070.00616.97
7.2.50.0090.00516.97
7.2.40.0050.00716.92
7.2.30.0060.00617.01
7.2.20.0050.00717.05
7.2.10.0030.01017.05
7.2.00.0050.01016.89
7.1.250.0040.00515.83
7.1.200.0000.00916.01
7.1.90.0060.00618.19
7.1.80.0060.00618.42
7.1.70.0060.01217.23
7.1.60.0200.01535.05
7.1.50.0200.00734.72
7.1.40.0250.01234.29
7.1.30.0150.01134.55
7.1.20.0200.00734.50
7.1.10.0070.00716.91
7.1.00.0090.00616.73
7.0.230.0040.00817.80
7.0.220.0000.01317.90
7.0.210.0030.01316.68
7.0.200.0030.01016.88
7.0.190.0090.00317.02
7.0.180.0040.00816.42
7.0.170.0060.00916.29
7.0.160.0040.01216.30
7.0.150.0110.00316.25
7.0.140.0000.01216.54
7.0.130.0060.00616.65
7.0.120.0090.00316.65
7.0.110.0060.00616.42
7.0.100.0070.00716.31
7.0.90.0040.00816.23
7.0.80.0000.01216.54
7.0.70.0030.00916.47
7.0.60.0000.01116.29
7.0.50.0060.00916.57
7.0.40.0030.01016.35
7.0.30.0030.00916.47
7.0.20.0060.00716.77
7.0.10.0030.00916.57
7.0.00.0070.01016.68

preferences:
61.76 ms | 401 KiB | 5 Q