3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "20' Container 1, 40' Open Container 1, 40-45' Closed Container 3, container roll 10, container lift 50"; preg_match_all( "~(\d+(?:-\d+)?')? (\D+) (\d+)~", $string, $matches, PREG_SET_ORDER ); print_r($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.5.00.0110.01120.08
8.4.150.0020.00114.05
8.4.140.0110.01017.64
8.4.130.0150.00517.64
8.4.120.0110.00720.29
8.4.110.0130.00722.39
8.4.100.0140.00717.76
8.4.90.0130.00817.91
8.4.80.0110.00818.11
8.4.70.0030.00619.80
8.4.60.0060.00218.80
8.4.50.0080.00219.23
8.4.40.0100.01019.32
8.4.30.0100.00020.61
8.4.20.0080.00018.91
8.4.10.0030.00620.43
8.3.280.0140.00818.39
8.3.270.0080.01216.70
8.3.260.0100.00916.70
8.3.250.0120.00718.85
8.3.240.0080.01016.61
8.3.230.0110.00516.29
8.3.220.0080.00716.98
8.3.210.0090.00916.55
8.3.200.0060.00316.57
8.3.190.0100.00616.86
8.3.180.0110.00716.73
8.3.170.0070.00318.99
8.3.160.0040.01418.70
8.3.150.0180.00020.46
8.3.140.0120.00616.75
8.3.130.0030.00516.72
8.3.120.0170.00018.65
8.3.110.0130.00620.94
8.3.100.0000.01124.06
8.3.90.0100.00026.77
8.3.80.0090.00019.36
8.3.70.0070.01518.31
8.3.60.0130.00718.68
8.3.50.0040.01418.21
8.3.40.0090.00618.83
8.3.30.0040.01118.84
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0040.00520.65
8.2.280.0050.00320.29
8.2.270.0190.00016.95
8.2.260.0080.00016.61
8.2.250.0080.00817.42
8.2.240.0040.01517.02
8.2.230.0080.00022.58
8.2.220.0090.00037.54
8.2.210.0070.00026.77
8.2.200.0070.00318.88
8.2.190.0070.01416.63
8.2.180.0070.00725.92
8.2.170.0120.00319.09
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0050.00522.38
8.2.100.0070.00717.78
8.2.90.0050.00319.09
8.2.80.0000.00818.72
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0050.00318.05
8.2.40.0050.00319.95
8.2.30.0000.00817.86
8.2.20.0000.00717.93
8.2.10.0040.00419.26
8.2.00.0040.00419.21
8.1.330.0120.00718.39
8.1.320.0120.00716.18
8.1.310.0160.00316.69
8.1.300.0060.00320.15
8.1.290.0060.00330.84
8.1.280.0040.01525.92
8.1.270.0090.00023.60
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00920.52
8.1.230.0090.00318.92
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00420.32
8.1.160.0000.00719.08
8.1.150.0030.00618.91
8.1.140.0050.00218.85
8.1.130.0000.00720.20
8.1.120.0030.00517.55
8.1.110.0030.00617.40
8.1.100.0030.00617.61
8.1.90.0070.00017.41
8.1.80.0040.00417.52
8.1.70.0030.00317.42
8.1.60.0000.00817.66
8.1.50.0000.00817.65
8.1.40.0040.00417.57
8.1.30.0030.00517.67
8.1.20.0060.00317.63
8.1.10.0040.00417.70
8.1.00.0040.00417.53
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.63
8.0.270.0000.00718.12
8.0.260.0030.00318.44
8.0.250.0030.00316.90
8.0.240.0000.00816.97
8.0.230.0070.00017.00
8.0.220.0000.00816.85
8.0.210.0030.00516.98
8.0.200.0000.00617.07
8.0.190.0000.00717.09
8.0.180.0040.00417.01
8.0.170.0050.00316.93
8.0.160.0060.00316.93
8.0.150.0040.00416.90
8.0.140.0050.00216.92
8.0.130.0000.00713.43
8.0.120.0050.00316.91
8.0.110.0040.00416.84
8.0.100.0030.00516.91
8.0.90.0060.00317.02
8.0.80.0080.00817.01
8.0.70.0070.00016.96
8.0.60.0070.00016.96
8.0.50.0040.00416.95
8.0.30.0190.00816.87
8.0.20.0180.00916.97
8.0.10.0200.00816.94
8.0.00.0040.01316.98
7.4.330.0020.00215.55
7.4.320.0000.00616.75
7.4.300.0060.00316.62
7.4.290.0070.00016.66
7.4.280.0000.00716.78
7.4.270.0000.00816.63
7.4.260.0030.00313.39
7.4.250.0000.00716.62
7.4.240.0030.00316.69
7.4.230.0000.00716.77
7.4.220.0040.00416.57
7.4.210.0090.00616.61
7.4.200.0030.00316.45
7.4.160.0040.01016.75
7.4.150.0270.00016.57
7.4.140.0220.00916.64
7.4.130.0240.00516.77
7.4.120.0220.01116.53
7.4.110.0150.00916.58
7.4.100.0290.00016.50
7.4.90.0260.00016.57
7.4.80.0160.01016.39
7.4.70.0160.01316.64
7.4.60.0200.00816.66
7.4.50.0270.00416.40
7.4.40.0230.00916.29
7.4.30.0150.01516.46
7.4.20.0240.00316.50
7.4.10.0180.00716.48
7.4.00.0200.00616.57
7.3.330.0060.00316.21
7.3.320.0000.00613.18
7.3.310.0030.00516.22
7.3.300.0000.00716.32
7.3.290.0070.01116.28
7.3.280.0130.01416.27
7.3.270.0150.01216.18
7.3.260.0160.01016.23
7.3.250.0140.01416.19
7.3.240.0130.01816.23
7.3.230.0210.01116.26
7.3.220.0200.00816.15
7.3.210.0300.00616.17
7.3.200.0230.01216.18
7.3.190.0190.01316.09
7.3.180.0220.01116.12
7.3.170.0260.00716.18
7.3.160.0270.00716.18
7.3.150.0240.00316.21
7.3.140.0230.00816.18
7.3.130.0240.00716.12
7.3.120.0280.00416.09
7.3.110.0170.01116.13
7.3.100.0360.00016.03
7.3.90.0150.01116.51
7.3.80.0240.00916.16
7.3.70.0180.01516.21
7.3.60.0190.01016.23
7.3.50.0200.00716.31
7.3.40.0210.01016.35
7.3.30.0290.00316.27
7.3.20.0270.00816.35
7.3.10.0210.01516.30
7.3.00.0330.00016.25

preferences:
162.33 ms | 403 KiB | 5 Q