3v4l.org

run code in 300+ PHP versions simultaneously
<?php $measurements = "Hauteur/-/175 cm/-/Height/-/5'9''/-/00010/--/Buste (Femme)/-/92 cm/-/Bust (Women)/-/36''/-/00020/--/Taille/-/74 cm/-/Waist/-/29''/-/00022/--/Hanches/-/99 cm/-/Hips/-/39''/-/00023"; $regex = "%(.*?)/-/(.*?)/-/(.*?)/-/(.*?)/-/\d{5}(?:/--/){0,1}%"; preg_match_all($regex, $measurements, $matches); var_dump($matches); $output = []; for ($i = 0; $i<count($matches[0]);$i++) { $output[$matches[1][$i]]=$matches[2][$i]; $output[$matches[3][$i]]=$matches[4][$i]; } var_dump($output);

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.10.0130.00616.97
8.5.00.0100.01120.07
8.4.150.0020.00114.05
8.4.140.0100.01117.92
8.4.130.0090.00317.82
8.4.120.0160.00422.12
8.4.110.0060.00522.34
8.4.100.0130.00818.13
8.4.90.0140.00719.73
8.4.80.0140.00618.05
8.4.70.0150.00617.95
8.4.60.0140.00718.76
8.4.50.0120.00917.90
8.4.40.0180.00317.98
8.4.30.0130.00720.32
8.4.20.0060.00319.88
8.4.10.0090.00019.57
8.3.280.0170.00718.35
8.3.270.0130.00816.58
8.3.260.0100.00216.59
8.3.250.0110.00818.95
8.3.240.0070.00316.61
8.3.230.0120.00716.70
8.3.220.0070.01016.99
8.3.210.0020.00616.70
8.3.200.0130.00716.60
8.3.190.0100.00918.75
8.3.180.0060.00216.85
8.3.170.0160.00318.82
8.3.160.0090.00616.68
8.3.150.0040.01520.60
8.3.140.0090.00018.92
8.3.130.0030.00616.82
8.3.120.0190.00019.23
8.3.110.0060.00320.94
8.3.100.0090.00016.57
8.3.90.0040.01426.77
8.3.80.0000.01117.00
8.3.70.0120.00316.88
8.3.60.0040.01216.50
8.3.50.0070.01118.38
8.3.40.0100.00723.36
8.3.30.0150.00319.09
8.3.20.0000.00824.18
8.3.10.0030.00624.66
8.3.00.0080.00026.16
8.2.290.0130.00619.00
8.2.280.0140.00418.68
8.2.270.0040.01217.51
8.2.260.0090.00618.38
8.2.250.0110.00016.87
8.2.240.0030.00617.28
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0090.00926.77
8.2.200.0060.00316.38
8.2.190.0090.00616.75
8.2.180.0090.00625.92
8.2.170.0060.00918.91
8.2.160.0060.01222.96
8.2.150.0050.00325.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.95
8.2.110.0090.00019.27
8.2.100.0090.00317.84
8.2.90.0080.00017.75
8.2.80.0040.00418.92
8.2.70.0090.00017.63
8.2.60.0090.00017.75
8.2.50.0040.00417.75
8.2.40.0000.00818.16
8.2.30.0050.00318.18
8.2.20.0030.00518.16
8.2.10.0060.00319.27
8.2.00.0050.00319.22
8.1.330.0090.01016.68
8.1.320.0110.00916.20
8.1.310.0040.00416.93
8.1.300.0000.00918.36
8.1.290.0090.00030.84
8.1.280.0190.00325.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00322.74
8.1.230.0060.00621.04
8.1.220.0040.00418.68
8.1.210.0050.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.48
8.1.180.0000.00918.10
8.1.170.0030.00617.62
8.1.160.0030.00518.92
8.1.150.0070.00018.81
8.1.140.0040.00418.86
8.1.130.0030.00618.97
8.1.120.0030.00617.65
8.1.110.0040.00417.50
8.1.100.0040.00417.60
8.1.90.0000.00717.66
8.1.80.0060.00317.51
8.1.70.0030.00317.45
8.1.60.0060.00317.74
8.1.50.0000.00817.66
8.1.40.0060.00317.58
8.1.30.0040.00417.79
8.1.20.0000.00817.82
8.1.10.0030.00617.59
8.1.00.0000.00817.60
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0030.00318.41
8.0.270.0030.00318.05
8.0.260.0070.00018.59
8.0.250.0030.00516.94
8.0.240.0000.00716.96
8.0.230.0040.00417.04
8.0.220.0050.00316.96
8.0.210.0000.00716.98
8.0.200.0000.00817.06
8.0.190.0000.00817.13
8.0.180.0110.00017.08
8.0.170.0030.00616.96
8.0.160.0040.00417.08
8.0.150.0040.00417.03
8.0.140.0020.00517.05
8.0.130.0030.00313.47
8.0.120.0080.00016.95
8.0.110.0000.00816.88
8.0.100.0060.00317.17
8.0.90.0000.01117.03
8.0.80.0090.00016.99
8.0.70.0040.00417.05
8.0.60.0050.00317.09
8.0.50.0000.00817.04
8.0.30.0030.00616.94
8.0.20.0060.00317.00
8.0.10.0040.00417.19
8.0.00.0040.00417.22
7.4.330.0050.00015.55
7.4.320.0000.00816.63
7.4.300.0000.00616.73
7.4.290.0030.00316.78
7.4.280.0030.00516.72
7.4.270.0000.00816.71
7.4.260.0050.00013.55
7.4.250.0000.00716.78
7.4.240.0040.00416.66
7.4.230.0000.00716.72
7.4.220.0000.00816.87
7.4.210.0050.00316.86
7.4.200.0040.00416.84
7.4.190.0040.00416.79
7.4.180.0090.00016.79
7.4.160.0060.00316.92
7.4.150.0000.00716.71
7.4.140.0000.00716.78
7.4.130.0030.00316.65
7.4.120.0030.00316.56
7.4.110.0000.00716.65
7.4.100.0040.00416.59
7.4.90.0030.00316.85
7.4.80.0070.00016.85
7.4.70.0040.00416.84
7.4.60.0040.00416.46
7.4.50.0050.00316.61
7.4.40.0040.00416.40
7.4.30.0060.00316.80
7.4.20.0050.00316.41
7.4.10.0030.00316.59
7.4.00.0000.00816.75
7.3.330.0060.00316.56
7.3.320.0030.00313.37
7.3.310.0030.00516.49
7.3.300.0000.00716.41
7.3.290.0000.00816.40
7.3.280.0030.00316.51
7.3.270.0030.00316.50
7.3.260.0030.00316.39
7.3.250.0000.00816.32
7.3.240.0030.00316.44
7.3.230.0070.00016.54
7.3.220.0030.00316.35
7.3.210.0070.00016.22
7.3.200.0060.00016.46
7.3.190.0030.00316.42
7.3.180.0060.00016.47
7.3.170.0030.00316.44
7.3.160.0000.00616.48
7.3.150.0070.00016.48
7.3.140.0090.00016.45
7.3.130.0040.00416.29
7.3.120.0000.00716.34
7.3.110.0080.00016.36
7.3.100.0000.00816.35
7.3.90.0070.00016.63
7.3.80.0030.00316.55
7.3.70.0000.00716.55
7.3.60.0030.00316.63
7.3.50.0020.00516.65
7.3.40.0030.00316.44
7.3.30.0080.00016.51
7.3.20.0070.00018.49
7.3.10.0040.00418.34
7.3.00.0000.00718.22

preferences:
167.29 ms | 403 KiB | 5 Q