3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '3:1,1:2,2:3'; $string = preg_replace('#1:(\d*),#', 'whateverToReplaceWith', $string); echo $string;

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.80.0090.00016.50
8.3.70.0090.00618.43
8.3.60.0070.00716.63
8.3.50.0110.00817.31
8.3.40.0090.00618.79
8.3.30.0080.00818.78
8.3.20.0030.00620.34
8.3.10.0050.00322.08
8.3.00.0080.00023.40
8.2.200.0000.00916.63
8.2.190.0070.01016.75
8.2.180.0140.00716.75
8.2.170.0120.00322.96
8.2.160.0130.00720.52
8.2.150.0090.00025.66
8.2.140.0040.01124.66
8.2.130.0050.00319.39
8.2.120.0070.00026.35
8.2.110.0080.00020.35
8.2.100.0040.00817.66
8.2.90.0000.00817.88
8.2.80.0080.00018.86
8.2.70.0070.00417.63
8.2.60.0050.00317.75
8.2.50.0050.00317.93
8.2.40.0030.00519.26
8.2.30.0070.00019.16
8.2.20.0040.00418.00
8.2.10.0000.00718.14
8.2.00.0000.00718.05
8.1.290.0060.00330.84
8.1.280.0110.01125.92
8.1.270.0080.00024.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.18
8.1.230.0060.00622.15
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0070.00018.85
8.1.150.0000.00720.09
8.1.140.0000.00719.49
8.1.130.0000.00820.63
8.1.120.0040.00417.54
8.1.110.0030.00517.50
8.1.100.0040.00417.59
8.1.90.0040.00417.59
8.1.80.0030.00517.47
8.1.70.0030.00317.39
8.1.60.0060.00317.66
8.1.50.0030.00517.49
8.1.40.0080.00017.48
8.1.30.0000.00817.57
8.1.20.0000.00817.76
8.1.10.0030.00617.71
8.1.00.0000.00717.48
8.0.300.0030.00518.77
8.0.290.0090.00016.75
8.0.280.0000.00818.48
8.0.270.0070.00417.29
8.0.260.0000.00618.46
8.0.250.0070.00017.14
8.0.240.0000.00917.09
8.0.230.0080.00017.00
8.0.220.0000.00716.91
8.0.210.0040.00416.87
8.0.200.0040.00416.90
8.0.190.0040.00417.07
8.0.180.0040.00416.92
8.0.170.0040.00416.88
8.0.160.0040.00416.94
8.0.150.0000.00716.92
8.0.140.0070.00016.96
8.0.130.0060.00013.39
8.0.120.0000.00716.84
8.0.110.0030.00516.80
8.0.100.0070.00016.99
8.0.90.0040.00417.04
8.0.80.0030.01716.93
8.0.70.0000.00816.91
8.0.60.0050.00216.95
8.0.50.0000.00716.84
8.0.30.0080.01017.10
8.0.20.0140.01117.40
8.0.10.0070.00017.07
8.0.00.0070.01117.14
7.4.330.0020.00215.55
7.4.320.0030.00316.62
7.4.300.0030.00316.74
7.4.290.0030.00316.51
7.4.280.0050.00316.77
7.4.270.0030.00316.67
7.4.260.0000.00716.75
7.4.250.0070.00016.54
7.4.240.0040.00416.72
7.4.230.0050.00316.64
7.4.220.0030.01816.58
7.4.210.0060.00916.57
7.4.200.0040.00416.83
7.4.160.0080.00816.63
7.4.150.0000.01717.40
7.4.140.0100.00817.86
7.4.130.0110.00716.77
7.4.120.0130.00616.73
7.4.110.0110.01116.62
7.4.100.0190.00016.83
7.4.90.0070.01016.64
7.4.80.0110.00719.39
7.4.70.0030.01716.45
7.4.60.0090.00916.50
7.4.50.0110.00616.51
7.4.40.0150.00316.77
7.4.30.0070.01116.70
7.4.00.0000.01315.12
7.3.330.0000.00613.25
7.3.320.0000.00613.32
7.3.310.0030.00316.32
7.3.300.0000.00716.39
7.3.290.0080.00616.41
7.3.280.0090.00816.36
7.3.270.0040.01417.40
7.3.260.0080.01016.48
7.3.250.0110.00816.66
7.3.240.0140.00416.58
7.3.230.0080.00816.46
7.3.210.0060.01016.75
7.3.200.0130.00316.72
7.3.190.0070.01016.62
7.3.180.0150.00616.53
7.3.170.0090.00616.76
7.3.160.0340.01216.64
7.2.330.0080.00816.59
7.2.320.0000.01716.66
7.2.310.0060.01016.64
7.2.300.0060.01916.83
7.2.290.0130.00716.59
7.2.80.0070.01016.87
7.2.60.0110.00017.12
7.1.200.0090.00316.11
7.1.90.0060.00618.35
7.1.80.0030.01018.51
7.1.70.0030.00917.23
7.1.60.0450.00433.58
7.1.50.0490.01035.12
7.1.40.0520.00732.87
7.1.30.0190.02334.76
7.1.20.0130.01635.00
7.1.10.0080.01116.72
7.1.00.0060.00616.88
7.0.230.0000.01217.88
7.0.220.0120.00017.96
7.0.210.0110.00016.65
7.0.200.0360.01015.05
7.0.190.0630.00015.09
7.0.180.0310.00914.53
7.0.170.0070.00716.51
7.0.160.0030.01416.20
7.0.150.0030.01016.49
7.0.140.0000.01216.33
7.0.130.0000.01116.60
7.0.120.0040.00816.73
7.0.110.0080.00516.51
7.0.100.0000.01216.46
7.0.90.0030.01016.54
7.0.80.0270.00714.90
7.0.70.0050.00816.43
7.0.60.0060.01116.43
7.0.50.0310.00314.81
7.0.40.0060.00616.78
7.0.30.0280.00715.13
7.0.20.0060.00616.80
7.0.10.0060.00616.59
7.0.00.0230.00914.88

preferences:
67.32 ms | 401 KiB | 5 Q