3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prices = array( "Red Pants" => 20, "Black Hats" => 15); $items = "8 Red Pants, 2 Shirts, 6 Black Hats"; preg_match_all("/(?:(\d+) ([\w ])+,?)+/", $items, $matches); 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.3.60.0140.00716.84
8.3.50.0180.00522.06
8.3.40.0150.00318.84
8.3.30.0120.00318.70
8.3.20.0040.00420.16
8.3.10.0070.00023.65
8.3.00.0080.00017.50
8.2.180.0140.00718.41
8.2.170.0110.00422.96
8.2.160.0110.00420.52
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00017.63
8.2.110.0060.00622.32
8.2.100.0040.00817.80
8.2.90.0030.00519.05
8.2.80.0030.00617.97
8.2.70.0050.00317.63
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0040.00419.46
8.2.30.0000.00720.57
8.2.20.0030.00617.82
8.2.10.0000.00818.07
8.2.00.0040.00417.89
8.1.280.0140.00725.92
8.1.270.0050.00323.97
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.58
8.1.230.0060.00617.64
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0000.00817.24
8.1.180.0040.00418.10
8.1.170.0030.00518.78
8.1.160.0040.00421.88
8.1.150.0000.00818.76
8.1.140.0040.00419.57
8.1.130.0030.00317.59
8.1.120.0040.00417.47
8.1.110.0040.00417.57
8.1.100.0040.00417.57
8.1.90.0030.00517.52
8.1.80.0050.00317.45
8.1.70.0000.00717.60
8.1.60.0000.00717.60
8.1.50.0040.00417.59
8.1.40.0060.00317.49
8.1.30.0030.00517.69
8.1.20.0040.00417.70
8.1.10.0000.00817.66
8.1.00.0080.00017.65
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0040.00318.30
8.0.270.0000.00817.08
8.0.260.0070.00017.13
8.0.250.0040.00417.01
8.0.240.0000.00717.02
8.0.230.0000.00717.01
8.0.220.0040.00416.87
8.0.210.0000.00716.98
8.0.200.0000.00717.08
8.0.190.0000.00716.97
8.0.180.0020.00516.98
8.0.170.0080.00017.00
8.0.160.0040.00416.86
8.0.150.0070.00016.99
8.0.140.0040.00416.86
8.0.130.0060.00013.38
8.0.120.0040.00416.84
8.0.110.0000.00816.80
8.0.100.0040.00416.88
8.0.90.0000.00716.84
8.0.80.0110.00416.96
8.0.70.0070.00016.85
8.0.60.0040.00416.78
8.0.50.0040.00416.93
8.0.30.0150.00617.21
8.0.20.0120.00617.40
8.0.10.0000.00717.16
8.0.00.0110.00916.89
7.4.330.0000.00515.08
7.4.320.0030.00316.60
7.4.300.0040.00416.75
7.4.290.0030.00316.61
7.4.280.0040.00416.63
7.4.270.0000.00716.64
7.4.260.0070.00016.49
7.4.250.0040.00416.60
7.4.240.0020.00516.69
7.4.230.0030.00316.73
7.4.220.0110.00616.75
7.4.210.0070.00916.67
7.4.200.0070.00016.63
7.4.160.0100.00616.67
7.4.150.0110.00717.40
7.4.140.0100.00817.86
7.4.130.0130.00616.45
7.4.120.0090.01116.69
7.4.110.0070.01016.53
7.4.100.0150.00716.47
7.4.90.0120.00616.63
7.4.80.0030.01519.39
7.4.70.0060.01116.70
7.4.60.0110.00716.62
7.4.50.0000.00816.38
7.4.40.0150.00416.52
7.4.30.0120.00616.64
7.4.00.0060.00915.27
7.3.330.0030.00313.11
7.3.320.0000.00613.18
7.3.310.0040.00416.14
7.3.300.0070.00016.32
7.3.290.0050.00216.32
7.3.280.0090.00716.32
7.3.270.0070.01017.40
7.3.260.0170.00716.54
7.3.240.0060.01316.44
7.3.230.0130.00916.42
7.3.210.0190.00316.29
7.3.200.0160.00316.66
7.3.190.0100.00716.36
7.3.180.0090.00916.41
7.3.170.0100.00716.58
7.3.160.0160.00016.57
7.2.330.0100.00716.69
7.2.320.0030.01316.55
7.2.310.0030.01516.48
7.2.300.0110.00716.50
7.2.290.0150.00916.54
7.2.80.0060.00616.57
7.2.60.0000.01516.88
7.2.00.0060.00919.55
7.1.200.0110.00315.79
7.1.100.0030.00918.15
7.1.70.0000.00917.14
7.1.60.0160.00919.43
7.1.50.0070.01416.93
7.1.00.0000.08022.37
7.0.200.0050.00216.90
7.0.60.0070.07019.95
7.0.50.0070.08017.86
7.0.40.0030.09320.13
7.0.30.0300.04020.12
7.0.20.0170.04720.07
7.0.10.0170.09020.25
7.0.00.0100.05320.11
5.6.280.0000.05020.81
5.6.210.0030.08720.62
5.6.200.0100.05018.25
5.6.190.0030.08320.47
5.6.180.0470.08320.67
5.6.170.0270.06720.53
5.6.160.0000.05320.42
5.6.150.0170.03018.29
5.6.140.0030.04318.18
5.6.130.0030.08718.14
5.6.120.0030.05021.09
5.6.110.0200.08721.00
5.6.100.0030.04721.10
5.6.90.0030.04720.89
5.6.80.0130.07720.27
5.6.70.3370.03020.39
5.5.350.0000.08020.44
5.5.340.0100.07317.99
5.5.330.0130.08020.36
5.5.320.0000.06720.23
5.5.310.0330.07320.35
5.5.300.0130.06717.98
5.5.290.0030.04017.96
5.5.280.0130.08020.76
5.5.270.0130.08020.89
5.5.260.0030.04720.64
5.5.250.0070.07720.67
5.5.240.0070.05720.25
5.4.450.0770.06319.61
5.4.440.0800.05719.33
5.4.430.0870.06319.27
5.4.420.0800.06719.32
5.4.410.0930.07019.14
5.4.400.0770.04019.29
5.4.390.0730.04719.14
5.4.380.0770.05019.20
5.4.370.0670.05019.07
5.4.360.0670.05719.12
5.4.350.1030.08019.27
5.4.340.1000.07019.10
5.4.320.0570.06019.28
5.4.310.0930.05018.83
5.4.300.0830.06719.36
5.4.290.0800.06018.83
5.4.280.0700.06319.32
5.4.270.0670.06019.00
5.4.260.0470.06719.12
5.4.250.0200.06719.26
5.4.240.0200.04719.09
5.4.230.0630.05719.22
5.4.220.0630.05319.00
5.4.210.0530.06319.28
5.4.200.0900.05318.93
5.4.190.0700.05318.84
5.4.180.0630.05719.27
5.4.170.0370.05018.93
5.4.160.0100.05018.80
5.4.150.0070.06019.18
5.4.140.0530.05716.45
5.4.130.0630.05016.49
5.4.120.0370.05316.31
5.4.110.0030.05716.60
5.4.100.0130.05016.62
5.4.90.0570.05716.61
5.4.80.0730.05716.55
5.4.70.0970.04316.54
5.4.60.0670.05716.59
5.4.50.0870.05016.56
5.4.40.0730.05316.49
5.4.30.0730.04016.59
5.4.20.0830.05016.58
5.4.10.0670.05016.63
5.4.00.0830.04015.89

preferences:
47.31 ms | 401 KiB | 5 Q