3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'Sunscreen 25g (200 Quantity)', 'Lubricant 100ml (50 Quantity)', 'WD-40 100ml (75 Quantity)', ]; var_export(preg_replace('~[^(]+\((\d+).*~', '$1', $strings));

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.4.140.0130.00917.81
8.4.130.0120.00917.38
8.4.120.0040.00519.64
8.4.110.0110.00818.20
8.4.100.0110.00817.90
8.4.90.0130.00820.48
8.4.80.0060.00318.91
8.4.70.0130.00620.53
8.4.60.0040.00420.54
8.4.50.0090.01320.61
8.4.40.0160.00318.18
8.4.30.0180.00320.62
8.4.20.0040.00420.07
8.4.10.0110.00023.82
8.3.270.0130.00616.67
8.3.260.0050.01416.48
8.3.250.0130.00616.53
8.3.240.0100.00116.55
8.3.230.0040.00416.80
8.3.220.0090.01018.79
8.3.210.0090.00716.57
8.3.200.0050.00416.69
8.3.190.0110.00517.36
8.3.180.0120.00818.72
8.3.170.0120.00318.79
8.3.160.0120.00620.85
8.3.150.0110.00816.55
8.3.140.0070.00016.44
8.3.130.0110.00018.44
8.3.120.0080.01120.71
8.3.110.0070.00320.94
8.3.100.0060.00324.06
8.3.90.0070.01026.77
8.3.80.0030.00618.43
8.3.70.0070.01116.74
8.3.60.0100.01018.31
8.3.50.0130.00718.42
8.3.40.0040.01120.02
8.3.30.0070.00718.79
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.290.0100.00916.74
8.2.280.0140.00618.35
8.2.270.0030.01218.70
8.2.260.0070.01117.06
8.2.250.0110.00416.57
8.2.240.0040.00419.15
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0080.00018.88
8.2.190.0140.00716.58
8.2.180.0040.01225.92
8.2.170.0060.00919.08
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00626.16
8.2.110.0060.00322.25
8.2.100.0040.00817.91
8.2.90.0030.00519.61
8.2.80.0060.00318.90
8.2.70.0030.00617.75
8.2.60.0000.00817.68
8.2.50.0030.00618.07
8.2.40.0080.00018.16
8.2.30.0050.00317.94
8.2.20.0000.00720.51
8.2.10.0080.00018.01
8.2.00.0020.00519.26
8.1.330.0040.00516.45
8.1.320.0130.00518.00
8.1.310.0050.00218.49
8.1.300.0030.00618.22
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0150.00420.45
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00620.52
8.1.230.0070.00417.68
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0050.00318.59
8.1.160.0080.00018.75
8.1.150.0000.00718.59
8.1.140.0050.00317.53
8.1.130.0070.00018.78
8.1.120.0000.00717.56
8.1.110.0080.00417.37
8.1.100.0110.00017.39
8.1.90.0080.00417.48
8.1.80.0150.00017.51
8.1.70.0050.01017.51
8.1.60.0110.00817.52
8.1.50.0040.01317.59
8.1.40.0140.00417.51
8.1.30.0120.00617.65
8.1.20.0150.00217.66
8.1.10.0090.00917.41
8.1.00.0070.01117.37
8.0.300.0080.00018.90
8.0.290.0000.00816.75
8.0.280.0000.00718.30
8.0.270.0030.00518.08
8.0.260.0000.00618.39
8.0.250.0040.00416.89
8.0.240.0090.00617.01
8.0.230.0070.00716.85
8.0.220.0110.00416.89
8.0.210.0150.00016.91
8.0.200.0130.00216.85
8.0.190.0150.00016.94
8.0.180.0070.00716.93
8.0.170.0160.00016.88
8.0.160.0120.00416.84
8.0.150.0090.00616.84
8.0.140.0070.00716.85
8.0.130.0140.00016.77
8.0.120.0110.00416.97
8.0.110.0070.00716.94
8.0.100.0070.00716.80
8.0.90.0150.00016.87
8.0.80.0070.00717.01
8.0.70.0000.01416.77
8.0.60.0000.01516.89
8.0.50.0140.00016.89
8.0.30.0050.01016.96
8.0.20.0000.01517.00
8.0.10.0110.00417.09
7.4.330.0050.00015.55
7.4.320.0110.00416.62
7.4.300.0110.00716.52
7.4.290.0020.00716.66
7.4.280.0090.00616.57
7.4.270.0160.00016.72
7.4.260.0130.00316.65
7.4.250.0150.00216.60
7.4.240.0100.00516.73
7.4.230.0120.00416.61
7.4.220.0110.00416.73
7.4.210.0070.00716.53
7.4.200.0110.00216.69
7.4.190.0050.00916.62
7.4.180.0100.00516.64
7.4.160.0120.00216.66
7.4.150.0090.00516.64
7.4.140.0140.00016.64
7.4.130.0070.00416.59
7.4.120.0050.00516.58
7.4.110.0000.01116.59
7.4.100.0050.00516.75
7.4.90.0030.00516.72
7.4.80.0030.01016.58
7.4.70.0000.01016.55
7.4.60.0080.00316.56
7.4.50.0080.00416.57
7.4.40.0070.00016.50
7.4.30.0070.00016.48
7.4.20.0030.00316.38
7.4.10.0000.00716.50
7.4.00.0030.00316.46

preferences:
81.81 ms | 403 KiB | 5 Q