3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('1 ½ cups','¼ cup','2 tablespoons', '½ cup', '1/3 cup', '2 large', '1 ½ teaspoons', '2 tablespoons', 'Large egg', '1 teaspoon', '¼ teaspoon'); foreach($array as $arr){ preg_match_all("/^(?:[\p{Pd}.\/\s-]*[\d↉½⅓⅔¼¾⅕⅖⅗⅘⅙⅚⅐⅛⅜⅝⅞⅑⅒⅟]|)+/um", $arr, $output); foreach($output[0] as $data){ $try[] = $data; } } var_dump($try);

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.0120.00918.80
8.3.60.0120.00316.85
8.3.50.0150.00617.55
8.3.40.0040.01519.05
8.3.30.0160.00618.96
8.3.20.0080.00020.33
8.3.10.0080.00021.96
8.3.00.0040.00423.48
8.2.190.0070.01117.13
8.2.180.0100.01016.75
8.2.170.0120.00319.26
8.2.160.0000.01421.02
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00821.07
8.2.110.0030.00622.32
8.2.100.0040.00718.16
8.2.90.0000.00818.00
8.2.80.0120.00018.91
8.2.70.0050.00517.75
8.2.60.0030.00518.04
8.2.50.0030.00518.07
8.2.40.0000.00818.10
8.2.30.0000.00818.29
8.2.20.0030.00518.09
8.2.10.0000.00718.13
8.2.00.0050.00318.22
8.1.280.0090.00625.92
8.1.270.0040.00423.71
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00923.92
8.1.230.0070.00419.22
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.61
8.1.190.0070.00419.13
8.1.180.0030.00618.10
8.1.170.0080.00318.64
8.1.160.0040.00418.86
8.1.150.0060.00320.16
8.1.140.0040.00817.72
8.1.130.0000.00717.67
8.1.120.0030.00617.56
8.1.110.0000.00717.66
8.1.100.0030.00617.63
8.1.90.0000.00717.55
8.1.80.0040.00417.57
8.1.70.0030.00517.50
8.1.60.0040.00417.73
8.1.50.0040.00417.68
8.1.40.0030.00617.68
8.1.30.0030.00617.71
8.1.20.0040.00417.71
8.1.10.0030.00617.78
8.1.00.0090.00017.60
8.0.300.0080.00018.77
8.0.290.0000.00816.88
8.0.280.0000.00718.36
8.0.270.0070.00016.92
8.0.260.0070.00016.96
8.0.250.0080.00017.21
8.0.240.0080.00017.07
8.0.230.0040.00717.15
8.0.220.0000.00717.06
8.0.210.0050.00317.20
8.0.200.0030.00617.06
8.0.190.0030.00517.21
8.0.180.0000.00817.10
8.0.170.0040.00417.06
8.0.160.0040.00417.11
8.0.150.0080.00017.07
8.0.140.0040.00417.04
8.0.130.0060.00013.58
8.0.120.0000.00717.14
8.0.110.0000.00717.24
8.0.100.0030.00517.07
8.0.90.0000.00717.07
8.0.80.0140.00617.15
8.0.70.0000.00716.95
8.0.60.0080.00017.21
8.0.50.0040.00417.07
8.0.30.0050.01317.26
8.0.20.0110.00817.40
8.0.10.0060.00317.24
8.0.00.0190.00316.89
7.4.330.0020.00215.55
7.4.320.0000.00616.93
7.4.300.0030.00316.90
7.4.290.0090.00316.63
7.4.280.0000.00816.88
7.4.270.0000.00716.93
7.4.260.0000.00716.76
7.4.250.0000.00716.79
7.4.240.0000.00916.72
7.4.230.0030.00316.70
7.4.220.0120.01816.70
7.4.210.0150.00016.89
7.4.200.0070.00016.78
7.4.160.0100.00616.86
7.4.150.0060.01317.40
7.4.140.0130.00917.86
7.4.130.0110.00616.85
7.4.120.0090.01016.76
7.4.110.0070.01116.93
7.4.100.0100.00716.91
7.4.90.0080.01016.83
7.4.80.0030.01619.39
7.4.70.0060.01616.79
7.4.60.0090.00616.69
7.4.50.0080.00616.59
7.4.40.0120.00416.86
7.4.30.0100.00716.80
7.4.00.0030.01315.02
7.3.330.0000.00613.26
7.3.320.0000.00613.43
7.3.310.0000.00716.49
7.3.300.0040.00416.66
7.3.290.0050.01116.49
7.3.280.0100.00816.48
7.3.270.0100.01117.40
7.3.260.0080.00916.78
7.3.250.0100.00816.64
7.3.240.0090.00816.62
7.3.230.0070.01516.80
7.3.210.0030.01316.50
7.3.200.0110.00616.72
7.3.190.0060.00916.63
7.3.180.0060.01616.73
7.3.170.0100.00716.66
7.3.160.0110.00916.60
7.3.120.0070.00715.28
7.3.110.0120.00515.15
7.3.100.0070.00615.13
7.3.90.0030.01015.16
7.3.80.0050.00815.17
7.3.70.0020.01015.18
7.3.60.0050.01115.07
7.3.50.0070.01015.00
7.3.40.0030.01115.09
7.3.30.0050.00614.98
7.3.20.0100.00616.95
7.3.10.0050.00717.00
7.3.00.0080.00716.77
7.2.330.0030.01516.90
7.2.320.0030.01317.00
7.2.310.0120.00616.84
7.2.300.0080.00816.73
7.2.290.0030.01316.73
7.2.250.0080.00915.21
7.2.240.0070.01115.29
7.2.230.0040.01015.21
7.2.220.0050.01015.28
7.2.210.0030.01215.16
7.2.200.0060.00815.21
7.2.190.0050.00815.29
7.2.180.0070.00515.29
7.2.170.0080.00515.26
7.2.60.0100.00317.03
7.1.330.0050.00916.10
7.1.320.0120.00216.00
7.1.310.0030.00915.74
7.1.300.0080.00816.09
7.1.290.0060.00815.92
7.1.280.0080.00715.96
7.1.270.0020.01416.01
7.1.260.0070.00715.93
7.1.200.0070.00415.93
7.1.100.0200.01216.73
7.1.90.1620.00616.71
7.1.80.1800.01016.77
7.1.70.0090.00715.50
7.1.60.2150.01633.53
7.1.50.1940.01033.10
7.1.40.2000.00732.84
7.1.30.1900.01032.98
7.1.20.2070.01732.98
7.1.10.1800.01314.93
7.1.00.1780.01015.18
7.0.240.0730.01016.22
7.0.230.2580.01016.26
7.0.220.0220.00716.36
7.0.210.1430.01014.98
7.0.200.2160.01015.13
7.0.190.0260.01015.37
7.0.180.0150.00314.51
7.0.170.0300.01114.65
7.0.160.0160.01214.82
7.0.150.0590.00714.67
7.0.140.1840.01014.87
7.0.130.0100.01015.09
7.0.120.0200.00715.00
7.0.110.2110.01014.71
7.0.100.1890.00314.89
7.0.90.1740.01014.66
7.0.80.2020.00714.92
7.0.70.1850.01314.59
7.0.60.1720.01014.44
7.0.50.1740.01314.83
7.0.40.1930.01014.87
7.0.30.1830.01015.07
7.0.20.1740.01314.87
7.0.10.1780.01014.59
7.0.00.1750.01314.83

preferences:
54.15 ms | 401 KiB | 5 Q