3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orderNumber = '002086S023Y9'; $reference = preg_replace('/(\d+\w\d+\w).*/', '$1', $orderNumber); echo $reference;

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.0150.00616.88
8.3.50.0120.00922.07
8.3.40.0140.00018.79
8.3.30.0150.00018.92
8.3.20.0040.00420.16
8.3.10.0040.00423.56
8.3.00.0030.00719.27
8.2.180.0120.00318.54
8.2.170.0120.00622.96
8.2.160.0100.00320.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0100.00022.38
8.2.110.0030.00622.20
8.2.100.0080.00318.03
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0000.00917.93
8.2.50.0000.00918.07
8.2.40.0000.00818.16
8.2.30.0060.00318.07
8.2.20.0040.00417.82
8.2.10.0040.00418.19
8.2.00.0000.00817.88
8.1.280.0110.00425.92
8.1.270.0000.01023.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00923.80
8.1.230.0060.00619.07
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0060.00317.38
8.1.180.0080.00018.10
8.1.170.0080.00018.64
8.1.160.0000.00821.82
8.1.150.0040.00418.82
8.1.140.0070.00017.46
8.1.130.0000.00717.76
8.1.120.0040.00417.54
8.1.110.0040.00417.53
8.1.100.0040.00417.38
8.1.90.0070.00017.55
8.1.80.0030.00317.54
8.1.70.0030.00317.48
8.1.60.0060.00517.60
8.1.50.0030.00517.48
8.1.40.0060.00317.51
8.1.30.0000.00817.64
8.1.20.0000.00717.66
8.1.10.0030.00617.65
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0040.00416.93
8.0.280.0040.00418.43
8.0.270.0000.00717.14
8.0.260.0040.00417.27
8.0.250.0030.00317.10
8.0.240.0030.00316.98
8.0.230.0000.00717.03
8.0.220.0030.00416.85
8.0.210.0030.00316.89
8.0.200.0030.00316.89
8.0.190.0000.00817.03
8.0.180.0070.00016.98
8.0.170.0060.00316.91
8.0.160.0040.00417.06
8.0.150.0030.00616.80
8.0.140.0040.00416.90
8.0.130.0000.00613.40
8.0.120.0000.00816.96
8.0.110.0040.00416.99
8.0.100.0040.00416.84
8.0.90.0030.00516.97
8.0.80.0000.01416.94
8.0.70.0040.00416.97
8.0.60.0040.00416.84
8.0.50.0040.00416.98
8.0.30.0130.00717.33
8.0.20.0100.00817.47
8.0.10.0000.00717.06
8.0.00.0080.00816.94
7.4.330.0050.00015.10
7.4.320.0030.00316.76
7.4.300.0000.00616.64
7.4.290.0050.00316.56
7.4.280.0000.00616.53
7.4.270.0000.00716.56
7.4.260.0030.00316.59
7.4.250.0000.00716.72
7.4.240.0030.00416.57
7.4.230.0040.00416.64
7.4.220.0190.00616.78
7.4.210.0050.00916.71
7.4.200.0000.00716.84
7.4.190.0050.00216.82
7.4.160.0060.00916.55
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0080.01116.65
7.4.120.0090.00816.62
7.4.110.0150.00916.86
7.4.100.0160.00416.93
7.4.90.0100.00716.68
7.4.80.0070.01119.39
7.4.70.0120.00616.69
7.4.60.0060.01016.77
7.4.50.0000.00416.51
7.4.40.0080.00522.77
7.4.30.0120.00416.84
7.4.00.0090.00515.13
7.3.330.0000.00513.18
7.3.320.0050.00013.21
7.3.310.0030.00316.29
7.3.300.0050.00316.30
7.3.290.0060.01216.30
7.3.280.0120.00516.38
7.3.270.0060.01317.40
7.3.260.0190.00416.70
7.3.250.0070.01416.61
7.3.240.0080.00816.68
7.3.230.0060.01216.56
7.3.210.0030.01316.46
7.3.200.0060.01519.39
7.3.190.0030.01616.71
7.3.180.0120.00316.63
7.3.170.0060.00916.58
7.3.160.0110.00516.30
7.3.120.0050.01115.12
7.3.110.0030.01314.87
7.3.100.0070.00714.85
7.3.90.0060.00314.93
7.3.80.0080.00415.07
7.3.70.0090.00614.96
7.3.60.0080.00314.80
7.3.50.0160.00014.91
7.3.40.0040.01114.78
7.3.30.0040.00815.02
7.3.20.0060.00616.78
7.3.10.0030.00916.61
7.3.00.0100.00316.72
7.2.330.0110.00616.85
7.2.320.0100.00716.89
7.2.310.0060.01016.72
7.2.300.0000.01816.50
7.2.290.0040.01416.59
7.2.250.0030.01615.07
7.2.240.0040.01115.20
7.2.230.0030.01215.31
7.2.220.0060.00914.97
7.2.210.0030.00715.08
7.2.200.0060.00915.14
7.2.190.0000.01515.34
7.2.180.0120.00615.20
7.2.170.0140.00015.05
7.2.00.0070.01019.78
7.1.330.0030.01216.08
7.1.320.0040.00716.12
7.1.310.0060.00916.05
7.1.300.0060.00916.04
7.1.290.0060.00616.09
7.1.280.0040.00815.73
7.1.270.0070.00715.66
7.1.260.0060.00615.83
7.1.100.0770.00716.50
7.1.70.0000.00817.52
7.1.60.0070.01419.46
7.1.50.0090.00617.02
7.1.00.0070.07022.42
7.0.200.0120.00316.93
7.0.140.0030.07322.07
7.0.60.0070.08319.89
7.0.50.0030.05717.82
7.0.40.0100.08020.29
7.0.30.0270.04020.02
7.0.20.0170.05320.13
7.0.10.0030.08320.12
7.0.00.0070.06720.18
5.6.280.0100.06320.86
5.6.210.0100.08320.52
5.6.200.0030.06318.23
5.6.190.0030.04720.43
5.6.180.0300.06320.56
5.6.170.0300.07320.38
5.6.160.0070.05320.39
5.6.150.0030.04318.21
5.6.140.0100.07718.10
5.6.130.0070.06718.11
5.6.120.0000.06021.14
5.6.110.0030.07721.00
5.6.100.0100.06721.13
5.6.90.0100.08720.97
5.6.80.0030.08320.53
5.6.70.1600.05720.35
5.5.350.0100.08020.41
5.5.340.0070.04718.01
5.5.330.0000.04320.21
5.5.320.0430.07020.28
5.5.310.0230.08020.41
5.5.300.0030.06017.92
5.5.290.0100.08317.86
5.5.280.0070.06720.85
5.5.270.0170.07720.95
5.5.260.0070.08320.65
5.5.250.0030.05320.68
5.5.240.0230.07320.25
5.4.450.0230.03719.40
5.4.440.0100.04319.56
5.4.430.0130.04019.40
5.4.420.0200.04019.39
5.4.410.0100.04319.29
5.4.400.0170.03719.08
5.4.390.0230.07318.80
5.4.380.0270.06718.89
5.4.370.0170.07018.88
5.4.360.0370.05019.16
5.4.350.0170.04318.92
5.4.340.0170.08319.13
5.4.320.0330.06719.16
5.4.310.0230.04718.92
5.4.300.0170.06019.13
5.4.290.0300.06018.80
5.4.280.0230.07718.91
5.4.270.0200.05718.82
5.4.260.0270.07318.88
5.4.250.0270.03719.25
5.4.240.0270.07019.25
5.4.230.0230.07718.91
5.4.220.0270.05719.16
5.4.210.0200.05719.24
5.4.200.0230.04018.91
5.4.190.0170.04319.05
5.4.180.0230.04319.08
5.4.170.0130.07719.03
5.4.160.0200.06719.22
5.4.150.0270.07318.86
5.4.140.0300.05716.34
5.4.130.0270.06316.43
5.4.120.0300.06716.45
5.4.110.0370.06016.43
5.4.100.0200.05016.43
5.4.90.0270.06716.43
5.4.80.0370.05716.39
5.4.70.0300.06316.21
5.4.60.0330.06316.20
5.4.50.0230.06716.47
5.4.40.0300.04716.39
5.4.30.0200.04316.40
5.4.20.0200.05716.49
5.4.10.0330.06016.36
5.4.00.0270.07315.99
5.3.290.0170.07014.50
5.3.280.0330.06014.42
5.3.270.0300.07014.58
5.3.260.0300.06714.58
5.3.250.0230.07014.55
5.3.240.0300.05314.65
5.3.230.0230.04314.54
5.3.220.0200.05714.41
5.3.210.0230.07714.51
5.3.200.0330.06314.61
5.3.190.0200.07014.40
5.3.180.0270.06714.61
5.3.170.0270.07314.39
5.3.160.0230.07014.59
5.3.150.0200.07314.60
5.3.140.0270.04014.50
5.3.130.0170.04014.38
5.3.120.0230.07714.39
5.3.110.0300.07014.38
5.3.100.0300.06714.06
5.3.90.0230.05713.96
5.3.80.0130.04713.97
5.3.70.0400.03013.87
5.3.60.0230.04713.95
5.3.50.0270.06713.87
5.3.40.0270.03713.89
5.3.30.0270.04013.82
5.3.20.0270.04013.71
5.3.10.0270.07313.47
5.3.00.0200.06313.68
5.2.170.0130.04012.13
5.2.160.0230.03312.13
5.2.150.0170.06312.13
5.2.140.0200.04712.13
5.2.130.0230.03312.13
5.2.120.0170.04312.13
5.2.110.0300.05012.13
5.2.100.0230.03712.13
5.2.90.0270.05312.13
5.2.80.0100.05712.13
5.2.70.0170.06012.13
5.2.60.0130.06012.13
5.2.50.0200.03312.13
5.2.40.0200.03712.13
5.2.30.0130.03712.13
5.2.20.0170.05312.13
5.2.10.0170.05012.13
5.2.00.0170.04012.13
5.1.60.0130.05012.13
5.1.50.0130.05312.13
5.1.40.0230.04712.13
5.1.30.0130.04312.13
5.1.20.0230.05012.13
5.1.10.0130.05012.13
5.1.00.0170.03012.13
5.0.50.0100.05012.13
5.0.40.0100.04012.13
5.0.30.0100.06012.13
5.0.20.0130.04012.13
5.0.10.0030.04712.13
5.0.00.0130.06012.13
4.4.90.0070.03012.13
4.4.80.0100.03312.13
4.4.70.0100.03312.13
4.4.60.0030.03312.13
4.4.50.0070.03012.13
4.4.40.0130.05012.13
4.4.30.0070.03712.13
4.4.20.0130.02312.13
4.4.10.0100.03312.13
4.4.00.0070.04012.13
4.3.110.0100.03012.13
4.3.100.0070.03712.13
4.3.90.0100.01712.13
4.3.80.0070.04012.13
4.3.70.0100.02312.13
4.3.60.0100.03312.13
4.3.50.0070.02012.13
4.3.40.0130.04712.13
4.3.30.0070.02712.13
4.3.20.0030.02312.13
4.3.10.0070.03312.13
4.3.00.0030.03312.13

preferences:
39.91 ms | 401 KiB | 5 Q