3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "12 XY 123456789"; if (preg_match('/^(?:(\d+)\s*)?(A|B|DF|XY)(?:\s*(\d+))?$/', $input, $matches)){ array_shift($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.0070.01416.75
8.3.50.0170.00018.25
8.3.40.0040.01118.78
8.3.30.0040.01118.84
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.180.0070.00725.92
8.2.170.0070.00722.96
8.2.160.0140.00022.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0100.00020.35
8.2.100.0090.00317.84
8.2.90.0040.00420.64
8.2.80.0030.00517.97
8.2.70.0050.00317.92
8.2.60.0000.00818.03
8.2.50.0000.00719.28
8.2.40.0000.00919.17
8.2.30.0000.00719.15
8.2.20.0030.00818.02
8.2.10.0040.00420.88
8.2.00.0040.00419.27
8.1.280.0110.00425.92
8.1.270.0030.00523.99
8.1.260.0080.00026.35
8.1.250.0020.00528.09
8.1.240.0190.00323.81
8.1.230.0000.01121.04
8.1.220.0000.00817.74
8.1.210.0000.01219.02
8.1.200.0060.00317.22
8.1.190.0000.00817.35
8.1.180.0040.00419.09
8.1.170.0080.00018.62
8.1.160.0000.00719.03
8.1.150.0000.00818.91
8.1.140.0040.00418.90
8.1.130.0030.00320.15
8.1.120.0070.00017.51
8.1.110.0000.00817.51
8.1.100.0000.00817.50
8.1.90.0040.00417.60
8.1.80.0000.00717.49
8.1.70.0040.00417.52
8.1.60.0050.00317.70
8.1.50.0000.00817.53
8.1.40.0000.00817.62
8.1.30.0000.00817.67
8.1.20.0030.00517.73
8.1.10.0060.00317.59
8.1.00.0060.00317.61
8.0.300.0030.00619.98
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0030.00316.96
8.0.260.0070.00318.32
8.0.250.0020.00517.05
8.0.240.0030.00316.95
8.0.230.0000.00717.02
8.0.220.0030.00316.93
8.0.210.0000.00716.86
8.0.200.0050.00216.89
8.0.190.0020.00516.95
8.0.180.0050.00316.94
8.0.170.0030.00616.85
8.0.160.0000.00716.98
8.0.150.0040.00416.92
8.0.140.0000.00716.95
8.0.130.0000.00613.41
8.0.120.0050.00216.88
8.0.110.0050.00316.99
8.0.100.0050.00316.77
8.0.90.0040.00416.84
8.0.80.0050.00916.88
8.0.70.0040.00416.79
8.0.60.0070.00016.88
8.0.50.0000.00817.04
8.0.30.0100.00716.96
8.0.20.0050.01317.18
8.0.10.0040.00416.95
8.0.00.0100.01316.77
7.4.330.0030.00315.55
7.4.320.0030.00316.72
7.4.300.0060.00016.66
7.4.290.0040.00416.66
7.4.280.0000.00716.75
7.4.270.0000.00616.69
7.4.260.0030.00313.45
7.4.250.0030.00316.54
7.4.240.0020.00516.76
7.4.230.0000.00716.55
7.4.220.0030.00316.79
7.4.210.0100.00816.68
7.4.200.0040.00416.78
7.4.130.0090.01316.67
7.4.120.0170.00716.72
7.4.110.0100.00716.58
7.4.100.0040.01616.52
7.4.90.0090.00916.55
7.4.80.0130.00719.39
7.4.70.0060.00916.67
7.4.60.0060.01216.54
7.4.50.0070.01916.67
7.4.40.0270.00616.54
7.4.30.0280.00816.65
7.4.20.0220.00716.49
7.4.10.0200.00916.44
7.4.00.0090.01416.43
7.3.330.0050.00316.35
7.3.320.0000.00613.22
7.3.310.0030.00316.38
7.3.300.0000.00716.20
7.3.290.0080.00816.32
7.3.280.0090.00616.24
7.3.260.0100.00716.58
7.3.240.0060.01116.50
7.3.230.0110.00616.32
7.3.210.0140.00316.36
7.3.200.0100.00616.30
7.3.190.0090.01116.40
7.3.180.0220.00616.33
7.3.170.0210.00516.31
7.3.160.0270.00716.25
7.3.150.0110.01416.12
7.3.140.0240.00816.32
7.3.130.0240.00816.57
7.3.120.0250.01016.12
7.3.110.0230.00716.52
7.3.100.0160.01316.16
7.3.90.0260.00716.36
7.3.80.0150.01516.67
7.3.70.0300.00716.30
7.3.60.0230.00816.24
7.3.50.0160.01416.37
7.3.40.0240.00316.42
7.3.30.0150.01216.35
7.3.20.0170.00516.34
7.3.10.0170.00716.39
7.3.00.0110.01516.45
7.2.330.0090.00916.38
7.2.320.0060.01316.70
7.2.310.0110.01016.33
7.2.300.0190.01316.70
7.2.290.0210.01216.53
7.2.280.0220.00616.54
7.2.270.0210.01216.63
7.2.260.0240.00716.54
7.2.250.0160.01316.54
7.2.240.0260.01016.66
7.2.230.0220.00816.64
7.2.220.0320.00416.49
7.2.210.0190.01116.48
7.2.200.0250.00816.72
7.2.190.0240.00916.48
7.2.180.0190.01016.63
7.2.170.0250.00616.52
7.2.160.0160.00416.54
7.2.150.0230.00316.43
7.2.140.0120.01016.66
7.2.130.0160.01216.65
7.2.120.0110.01716.58
7.2.110.0040.01916.44
7.2.100.0270.00018.49
7.2.90.0100.01018.46
7.2.80.0170.00718.32
7.2.70.0070.01318.37
7.2.60.0150.00518.36
7.2.50.0140.00418.46
7.2.40.0100.01318.23
7.2.30.0160.00518.55
7.2.20.0170.00518.32
7.2.10.0100.01018.30
7.2.00.0070.01018.54

preferences:
33.16 ms | 400 KiB | 5 Q