3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = preg_replace_callback(array('/\d/', '/a/'), function($matches)use(&$result){ $result[] = $matches[0]; return '_'; }, 'ada2d1', 1); print_r($match); print_r($result);

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.0080.00816.75
8.3.50.0080.00922.15
8.3.40.0110.00419.09
8.3.30.0070.00719.13
8.3.20.0050.00320.21
8.3.10.0060.00321.81
8.3.00.0090.00019.50
8.2.180.0110.00418.35
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00626.16
8.2.120.0050.00322.29
8.2.110.0090.00022.23
8.2.100.0050.00518.03
8.2.90.0080.00019.38
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0030.00518.04
8.2.50.0030.00618.07
8.2.40.0000.00819.88
8.2.30.0000.00819.89
8.2.20.0040.00418.00
8.2.10.0040.00419.89
8.2.00.0050.00317.95
8.1.280.0060.00925.92
8.1.270.0080.00823.92
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.76
8.1.230.0070.00419.03
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0050.00517.47
8.1.190.0090.00017.35
8.1.180.0060.00318.10
8.1.170.0050.00318.84
8.1.160.0040.00422.05
8.1.150.0040.00418.77
8.1.140.0040.00417.59
8.1.130.0070.00017.88
8.1.120.0070.00017.68
8.1.110.0050.00217.61
8.1.100.0000.00717.56
8.1.90.0050.00217.50
8.1.80.0040.00317.57
8.1.70.0000.00717.49
8.1.60.0000.00917.64
8.1.50.0040.00417.65
8.1.40.0070.00017.70
8.1.30.0030.00617.70
8.1.20.0040.00417.85
8.1.10.0040.00417.64
8.1.00.0040.00417.67
8.0.300.0000.00720.73
8.0.290.0040.00417.16
8.0.280.0070.00018.47
8.0.270.0050.00217.25
8.0.260.0060.00017.22
8.0.250.0030.00317.05
8.0.240.0000.00716.98
8.0.230.0040.00417.01
8.0.220.0070.00016.96
8.0.210.0070.00016.89
8.0.200.0000.00617.11
8.0.190.0000.00817.04
8.0.180.0040.00417.01
8.0.170.0000.00817.02
8.0.160.0040.00417.05
8.0.150.0050.00316.98
8.0.140.0030.00516.89
8.0.130.0000.00613.47
8.0.120.0080.00016.97
8.0.110.0000.00717.02
8.0.100.0000.00916.82
8.0.90.0040.00416.93
8.0.80.0000.01416.95
8.0.70.0050.00217.05
8.0.60.0050.00316.88
8.0.50.0040.00416.82
8.0.30.0110.00817.31
8.0.20.0110.00817.46
8.0.10.0040.00416.97
8.0.00.0090.01116.99
7.4.330.0000.00515.04
7.4.320.0000.00716.63
7.4.300.0000.00616.61
7.4.290.0070.00016.77
7.4.280.0000.00916.69
7.4.270.0030.00316.65
7.4.260.0050.00316.65
7.4.250.0040.00416.68
7.4.240.0050.00216.77
7.4.230.0070.00016.82
7.4.220.0150.00916.80
7.4.210.0070.00816.81
7.4.200.0030.00316.64
7.4.190.0030.00316.86
7.4.160.0050.01116.53
7.4.150.0080.00817.40
7.4.140.0110.00517.86
7.4.130.0130.00816.53
7.4.120.0080.00916.78
7.4.110.0150.00316.54
7.4.100.0120.00616.79
7.4.90.0170.00016.63
7.4.80.0100.01019.39
7.4.70.0160.00016.74
7.4.60.0160.00016.58
7.4.50.0070.00016.55
7.4.40.0110.01216.54
7.4.30.0110.00716.59
7.4.00.0060.01015.35
7.3.330.0000.00513.28
7.3.320.0060.00013.53
7.3.310.0040.00416.40
7.3.300.0030.00316.52
7.3.290.0060.01216.43
7.3.280.0050.01116.43
7.3.270.0100.00717.40
7.3.260.0100.00916.52
7.3.250.0060.01216.55
7.3.240.0100.00616.61
7.3.230.0060.01216.60
7.3.210.0130.00916.55
7.3.200.0030.02019.39
7.3.190.0090.01316.50
7.3.180.0080.00816.68
7.3.170.0080.00816.59
7.3.160.0110.00516.70
7.3.120.0090.00614.91
7.2.330.0100.00716.98
7.2.320.0080.01216.75
7.2.310.0090.00916.65
7.2.300.0060.01016.79
7.2.290.0120.00916.79
7.2.60.0100.00716.82
7.2.00.0040.00819.74
7.1.100.0060.00618.15
7.1.70.0050.00517.40
7.1.60.0060.01919.46
7.1.50.0090.01316.77
7.1.00.0070.07322.50
7.0.200.0050.00316.89
7.0.140.0000.07722.06
7.0.60.0130.07019.95
7.0.50.0070.05317.88
7.0.40.0130.05719.99
7.0.30.0200.04320.17
7.0.20.0230.08020.20
7.0.10.0070.07720.22
7.0.00.0130.06320.24
5.6.280.0000.07720.90
5.6.210.0030.08320.45
5.6.200.0070.04718.19
5.6.190.0070.05020.77
5.6.180.0200.08720.45
5.6.170.0270.08020.62
5.6.160.0070.06020.57
5.6.150.0070.03718.17
5.6.140.0000.06318.29
5.6.130.0130.06018.11
5.6.120.0030.08721.14
5.6.110.0270.06320.99
5.6.100.0070.04720.88
5.6.90.0170.08021.08
5.6.80.0070.08020.43
5.5.350.0070.07020.33
5.5.340.0170.07017.94
5.5.330.0000.05020.42
5.5.320.0330.06320.34
5.5.310.0500.07020.35
5.5.300.0200.06018.08
5.5.290.0070.08318.01
5.5.280.0130.06720.96
5.5.270.0130.08020.84
5.5.260.0100.05020.87
5.5.250.0070.05720.62
5.5.240.0100.08320.19
5.4.450.0200.07019.59
5.4.440.0130.05719.33
5.4.430.0100.06019.46
5.4.420.0170.05719.30
5.4.410.0200.05019.34
5.4.400.0130.07319.29
5.4.390.0070.06018.87
5.4.380.0070.06018.79
5.4.370.0200.04718.74
5.4.360.0130.06718.50
5.4.350.0170.05018.78
5.4.340.0130.05018.79
5.4.320.0020.03912.50
5.4.310.0060.04012.50
5.4.300.0060.03712.50
5.4.290.0170.05312.48
5.4.280.0140.05112.38
5.4.270.0260.04912.38
5.4.260.0110.06012.38
5.4.250.0120.06412.38
5.4.240.0120.05912.38
5.4.230.0090.06012.37
5.4.220.0090.06012.38
5.4.210.0150.06012.37
5.4.200.0080.06512.38
5.4.190.0070.05912.37
5.4.180.0210.12312.37
5.4.170.0230.11612.38
5.4.160.0120.04012.38
5.4.150.0090.06612.38
5.4.140.0070.04012.05
5.4.130.0050.09712.04
5.4.120.0450.06812.00
5.4.110.0320.10112.00
5.4.100.0440.07312.00
5.4.90.0150.06411.99
5.4.80.0130.04711.99
5.4.70.0090.05111.99
5.4.60.0130.04912.00
5.4.50.0170.09612.00
5.4.40.0070.06111.98
5.4.30.0070.06511.98
5.4.20.0300.08311.98
5.4.10.0070.08311.97
5.4.00.0050.05911.47
5.3.290.0060.03912.80
5.3.280.0140.04912.71
5.3.270.0140.05212.72
5.3.260.0190.10412.72
5.3.250.0210.08012.71
5.3.240.0170.04412.72
5.3.230.0130.04712.71
5.3.220.0150.04912.68
5.3.210.0250.04512.68
5.3.200.0130.07012.68
5.3.190.0360.11512.68
5.3.180.0200.08012.68
5.3.170.0250.10512.67
5.3.160.0250.10212.67
5.3.150.0170.09512.67
5.3.140.0150.09012.66
5.3.130.0100.05412.66
5.3.120.0080.05812.66
5.3.110.0060.06012.66
5.3.100.0080.05812.12
5.3.90.0080.06112.09
5.3.80.0080.05812.09
5.3.70.0080.05312.09
5.3.60.0100.05212.07
5.3.50.0080.05312.03
5.3.40.0160.04712.03
5.3.30.0090.05711.98
5.3.20.0110.05211.76
5.3.10.0160.05011.73
5.3.00.0080.05711.71
5.2.170.0060.0489.18
5.2.160.0070.0479.18
5.2.150.0160.0739.18
5.2.140.0100.0479.18
5.2.130.0120.0409.14
5.2.120.0070.0449.14
5.2.110.0070.0459.15
5.2.100.0130.0619.14
5.2.90.0190.0839.14
5.2.80.0110.0889.14
5.2.70.0120.0899.14
5.2.60.0280.1239.09
5.2.50.0160.0919.06
5.2.40.0180.0569.04
5.2.30.0120.0669.01
5.2.20.0070.0379.00
5.2.10.0040.0438.93
5.2.00.0300.0718.79
5.1.60.0060.0418.07
5.1.50.0280.0738.07
5.1.40.0090.0478.05
5.1.30.0130.0658.39
5.1.20.0090.0568.41
5.1.10.0080.0748.14
5.1.00.0090.0428.14
5.0.50.0080.0326.63
5.0.40.0210.0586.48
5.0.30.0040.0606.29
5.0.20.0050.0326.27
5.0.10.0050.0346.24
5.0.00.0070.0466.23
4.4.90.0060.0254.78
4.4.80.0050.0344.75
4.4.70.0100.0344.76
4.4.60.0080.0384.75
4.4.50.0070.0504.77
4.4.40.0070.0814.71
4.4.30.0170.0504.76
4.4.20.0130.0404.84
4.4.10.0050.0384.85
4.4.00.0140.0714.75
4.3.110.0090.0594.67
4.3.100.0080.0344.66
4.3.90.0030.0224.63
4.3.80.0050.0354.58
4.3.70.0020.0324.63
4.3.60.0020.0224.63
4.3.50.0040.0214.62
4.3.40.0040.0304.54
4.3.30.0030.0163.28
4.3.20.0070.0343.26
4.3.10.0130.0523.22
4.3.00.0000.0238.75

preferences:
39.47 ms | 401 KiB | 5 Q