3v4l.org

run code in 300+ PHP versions simultaneously
<?php $htmls[] = <<<HTML DATA.tracking.user = { age: "19", name: "John doe", int: 55 } // This works HTML; $htmls[] = <<<HTML DATA.tracking.user = { age: "20", name: "Jane Doe", int: 49 } // This does not works HTML; foreach ($htmls as $html) { var_export(preg_match_all('~(?:\G(?!^),|DATA\.tracking\.user = \{)\s+([^:]+): (\d+|"[^"]*")~', $html, $out, PREG_SET_ORDER) ? $out : []); echo "\n --- \n"; }

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.20.0100.01019.57
8.4.10.0040.00417.69
8.3.150.0120.00617.46
8.3.140.0060.00317.13
8.3.130.0060.00318.50
8.3.120.0000.00819.04
8.3.110.0100.00720.94
8.3.100.0040.00416.63
8.3.90.0040.00426.77
8.3.80.0090.00016.88
8.3.70.0100.01018.43
8.3.60.0110.01118.68
8.3.50.0070.01018.44
8.3.40.0070.00718.88
8.3.30.0150.00719.01
8.3.20.0080.00021.64
8.3.10.0040.00421.86
8.3.00.0080.00023.55
8.2.270.0090.00916.91
8.2.260.0090.00616.97
8.2.250.0040.00418.93
8.2.240.0120.00317.11
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0060.00926.77
8.2.200.0130.00016.50
8.2.190.0030.01416.88
8.2.180.0040.01225.92
8.2.170.0130.00719.08
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00721.07
8.2.120.0040.00426.35
8.2.110.0050.00519.34
8.2.100.0120.00017.84
8.2.90.0080.00018.34
8.2.80.0040.00719.20
8.2.70.0030.00517.88
8.2.60.0030.00517.75
8.2.50.0040.00417.88
8.2.40.0000.00818.09
8.2.30.0000.00818.16
8.2.20.0000.00718.17
8.2.10.0040.00418.08
8.2.00.0030.00519.14
8.1.310.0080.01318.38
8.1.300.0060.00917.90
8.1.290.0030.00730.84
8.1.280.0040.01125.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0070.00420.89
8.1.220.0030.00517.74
8.1.210.0040.00418.89
8.1.200.0000.00817.47
8.1.190.0030.00617.25
8.1.180.0090.00318.10
8.1.170.0040.00418.84
8.1.160.0040.00419.03
8.1.150.0030.00619.10
8.1.140.0040.00417.70
8.1.130.0040.00417.58
8.1.120.0040.00317.63
8.1.110.0000.00817.64
8.1.100.0000.00817.56
8.1.90.0000.00817.59
8.1.80.0040.00417.63
8.1.70.0000.00717.52
8.1.60.0060.00617.78
8.1.50.0040.00417.59
8.1.40.0030.00517.72
8.1.30.0000.00817.88
8.1.20.0030.00617.71
8.1.10.0030.00517.66
8.1.00.0040.00417.54
8.0.300.0070.00020.35
8.0.290.0000.00716.88
8.0.280.0070.00018.54
8.0.270.0080.00017.19
8.0.260.0070.00017.09
8.0.250.0030.00317.17
8.0.240.0000.00717.05
8.0.230.0000.00717.11
8.0.220.0030.00617.15
8.0.210.0000.00717.12
8.0.200.0000.00717.11
8.0.190.0080.00017.16
8.0.180.0030.00717.13
8.0.170.0090.00017.20
8.0.160.0040.00317.11
8.0.150.0040.00417.11
8.0.140.0000.00717.05
8.0.130.0030.00313.56
8.0.120.0070.00017.11
8.0.110.0040.00417.16
8.0.100.0000.00716.97
8.0.90.0000.00717.08
8.0.80.0090.01217.16
8.0.70.0000.00717.08
8.0.60.0000.00717.01
8.0.50.0000.00717.18
8.0.30.0110.00817.31
8.0.20.0120.00917.40
8.0.10.0030.00517.05
8.0.00.0090.01316.95
7.4.330.0030.00316.86
7.4.320.0060.00016.79
7.4.300.0060.00016.55
7.4.290.0000.00716.58
7.4.280.0080.00016.77
7.4.270.0000.00816.58
7.4.260.0030.00316.79
7.4.250.0000.00716.73
7.4.240.0040.00416.69
7.4.230.0030.00316.52
7.4.220.0040.00416.79
7.4.210.0060.01016.63
7.4.200.0040.00416.81
7.4.160.0050.01116.79
7.4.140.0080.01417.86
7.4.130.0130.01016.64
7.4.120.0140.00316.81
7.4.110.0080.00916.93
7.4.100.0060.01216.87
7.4.90.0160.00616.75
7.4.80.0060.01219.39
7.4.70.0170.00616.71
7.4.60.0070.01416.69
7.4.50.0040.01516.56
7.4.40.0090.01416.54
7.4.00.0070.00715.11
7.3.330.0000.00513.19
7.3.320.0050.00013.21
7.3.310.0030.00516.53
7.3.300.0030.00316.39
7.3.290.0070.00016.51
7.3.280.0050.00916.45
7.3.260.0110.00816.65
7.3.240.0100.00816.62
7.3.230.0140.01116.55
7.3.210.0060.01216.57
7.3.200.0100.00716.56
7.3.190.0030.01316.84
7.3.180.0060.01616.49
7.3.170.0050.01416.60
7.3.160.0090.00616.54
7.2.330.0070.01216.91
7.2.320.0060.01216.73
7.2.310.0030.01316.79
7.2.300.0150.00716.59
7.2.290.0080.01116.58
7.2.60.0090.00616.93
7.2.40.2130.01018.53
7.2.30.2510.01017.96
7.2.20.2330.01118.48
7.2.10.1970.00618.36
7.2.00.2140.01118.18
7.1.200.0000.01016.09
7.1.160.1980.01217.10
7.1.150.2340.01317.36
7.1.140.2010.01017.32
7.1.130.1680.01416.97
7.1.120.2860.01417.04
7.1.110.3100.00616.61
7.1.100.3120.01216.69
7.1.90.0110.00816.46
7.1.80.0140.00916.46
7.1.70.0100.00815.50
7.1.60.0330.01933.55
7.1.50.2460.01333.07
7.1.40.3500.01832.68
7.1.30.2550.01332.89
7.1.20.2940.01332.93
7.1.10.0100.01215.07
7.1.00.3890.01015.13

preferences:
28.71 ms | 403 KiB | 5 Q