3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'a container_ids="4" resp. container_ids="777"'; $nahrada = preg_replace_callback('~(container_ids=")(\d+)(")~', function ($matches) { return $matches[1] . ($matches[2] + 10) . $matches[3]; }, $text); var_dump($nahrada);

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.4.140.0130.00817.89
8.4.130.0100.00917.86
8.4.120.0110.01020.46
8.4.110.0140.00724.35
8.4.100.0020.00718.92
8.4.90.0130.00620.77
8.4.80.0060.00419.08
8.4.70.0110.00719.16
8.4.60.0120.00818.82
8.4.50.0120.00718.66
8.4.40.0160.00317.65
8.4.30.0130.00720.48
8.4.20.0200.00018.09
8.4.10.0090.00919.75
8.3.260.0120.00716.87
8.3.250.0030.00618.97
8.3.240.0050.00516.98
8.3.230.0140.00616.48
8.3.220.0090.00919.11
8.3.210.0140.00416.61
8.3.200.0070.00216.76
8.3.190.0130.00517.36
8.3.180.0050.00318.82
8.3.170.0100.01016.79
8.3.160.0030.01718.87
8.3.150.0090.00919.10
8.3.140.0030.00518.85
8.3.130.0030.00618.51
8.3.120.0160.00320.84
8.3.110.0040.00418.34
8.3.100.0080.00818.57
8.3.90.0190.00018.46
8.3.80.0060.00317.97
8.3.70.0150.00718.56
8.3.60.0110.00318.43
8.3.50.0130.00523.67
8.3.40.0180.00318.90
8.3.30.0150.00618.67
8.3.20.0000.00821.72
8.3.10.0130.00322.00
8.3.00.0040.00423.39
8.2.290.0100.00916.75
8.2.280.0100.00820.36
8.2.270.0150.00416.87
8.2.260.0090.00916.70
8.2.250.0040.00418.66
8.2.240.0070.01117.26
8.2.230.0160.00020.94
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0070.00416.88
8.2.190.0110.00716.63
8.2.180.0140.00316.75
8.2.170.0070.00722.96
8.2.160.0070.00721.36
8.2.150.0080.00024.18
8.2.140.0110.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0030.00621.07
8.2.100.0080.00318.16
8.2.90.0050.00318.22
8.2.80.0040.00418.22
8.2.70.0000.00817.75
8.2.60.0000.00817.88
8.2.50.0000.00917.75
8.2.40.0050.00320.20
8.2.30.0000.00718.27
8.2.20.0000.00818.07
8.2.10.0050.00321.12
8.2.00.0000.00719.27
8.1.330.0100.00916.48
8.1.320.0130.00718.09
8.1.310.0100.01016.21
8.1.300.0130.00618.16
8.1.290.0000.00918.88
8.1.280.0120.00625.92
8.1.270.0080.00022.05
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.69
8.1.230.0080.00320.95
8.1.220.0040.00417.79
8.1.210.0030.00618.91
8.1.200.0040.00417.48
8.1.190.0080.00017.47
8.1.180.0060.00318.10
8.1.170.0040.00418.63
8.1.160.0040.00418.88
8.1.150.0030.00618.95
8.1.140.0000.00718.99
8.1.130.0000.00720.17
8.1.120.0050.00217.57
8.1.110.0000.00717.64
8.1.100.0000.00717.57
8.1.90.0040.00417.52
8.1.80.0060.00317.66
8.1.70.0070.00017.66
8.1.60.0050.00317.76
8.1.50.0000.00817.69
8.1.40.0060.00317.63
8.1.30.0060.00317.71
8.1.20.0000.00717.71
8.1.10.0030.00517.68
8.1.00.0040.00417.63
8.0.300.0040.00420.07
8.0.290.0000.00816.88
8.0.280.0030.00318.35
8.0.270.0030.00318.23
8.0.260.0030.00618.52
8.0.250.0000.00617.20
8.0.240.0070.00317.21
8.0.230.0030.00517.17
8.0.220.0000.00717.16
8.0.210.0070.00017.02
8.0.200.0070.00017.15
8.0.190.0040.00417.22
8.0.180.0080.00017.02
8.0.170.0050.00317.13
8.0.160.0040.00417.07
8.0.150.0000.00717.02
8.0.140.0000.00716.95
8.0.130.0000.00613.53
8.0.120.0040.00417.00
8.0.110.0000.00716.88
8.0.100.0000.00717.01
8.0.90.0000.00817.06
8.0.80.0070.01117.07
8.0.70.0040.00416.90
8.0.60.0080.00017.09
8.0.50.0000.00816.98
8.0.30.0090.00917.12
8.0.20.0090.01417.26
8.0.10.0070.00017.28
8.0.00.0100.01416.90
7.4.330.0000.00515.55
7.4.320.0050.00216.73
7.4.300.0060.00016.84
7.4.290.0040.00416.71
7.4.280.0050.00316.70
7.4.270.0000.00716.81
7.4.260.0050.00013.50
7.4.250.0030.00316.73
7.4.240.0040.00416.69
7.4.230.0050.00216.83
7.4.220.0040.00316.83
7.4.210.0040.01116.82
7.4.200.0000.00716.59
7.4.130.0100.00816.74
7.4.120.0030.01516.77
7.4.110.0030.01416.72
7.4.100.0160.00616.63
7.4.90.0080.00916.79
7.4.80.0140.02019.39
7.4.70.0080.00816.75
7.4.60.0080.00816.58
7.4.50.0110.00416.54
7.4.40.0110.00616.57
7.4.30.0080.00816.56
7.4.20.0060.00916.49
7.4.10.0080.00816.50
7.4.00.0100.01416.54
7.3.330.0000.00716.51
7.3.320.0030.00313.27
7.3.310.0000.00716.29
7.3.300.0000.00716.31
7.3.290.0030.00316.34
7.3.260.0130.00616.58
7.3.230.0100.00716.65
7.3.210.0150.00316.53
7.3.200.0030.01416.46
7.3.190.0100.00716.48
7.3.180.0100.00716.55
7.3.170.0140.00616.50
7.3.160.0110.00616.41
7.3.150.0030.01216.24
7.3.140.0080.00816.29
7.3.130.0070.01516.47
7.3.120.0110.01016.55
7.3.110.0130.00916.29
7.3.100.0070.01016.45
7.3.90.0060.01016.42
7.3.80.0070.01016.52
7.3.70.0050.01116.52
7.3.60.0130.00316.46
7.3.50.0080.00816.52
7.3.40.0100.00616.46
7.3.30.0130.00316.45
7.3.20.0090.00916.44
7.3.10.0060.01316.44
7.3.00.0110.00516.45
7.2.330.0130.00916.86
7.2.320.0070.01416.63
7.2.310.0060.01216.98
7.2.300.0070.01116.86
7.2.290.0140.00316.49
7.2.280.0130.00316.45
7.2.270.0100.00616.66
7.2.260.0060.00916.70
7.2.250.0180.00616.79
7.2.240.0130.00316.68
7.2.230.0040.01416.66
7.2.220.0090.00916.89
7.2.210.0120.00616.73
7.2.200.0110.00516.66
7.2.190.0120.00416.71
7.2.180.0090.00916.68
7.2.170.0040.01416.50
7.2.160.0030.01316.64
7.2.150.0090.00916.66
7.2.140.0130.00316.83
7.2.130.0140.00316.84
7.2.120.0070.01016.87
7.2.110.0160.00016.72
7.2.100.0130.00316.87
7.2.90.0400.00316.64
7.2.80.0030.01316.83
7.2.70.0170.00016.80
7.2.60.0140.00316.89
7.2.50.0160.00316.68
7.2.40.0170.00316.72
7.2.30.0120.00916.70
7.2.20.0060.01616.86
7.2.10.0130.01016.64
7.2.00.0060.01116.74

preferences:
131.48 ms | 403 KiB | 5 Q