3v4l.org

run code in 300+ PHP versions simultaneously
<?php $patterns[0] = "{0}"; $patterns[1] = "{1}"; $replacements[0] = 'Динамо Киев'; $replacements[1] = '87'; $resultGoal = preg_replace($patterns, $replacements, 'Первый гол: {0} на {1} мин.'); echo $resultGoal;

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.0110.00418.68
8.3.50.0070.01521.09
8.3.40.0070.00718.96
8.3.30.0060.01019.21
8.3.20.0080.00020.20
8.3.10.0080.00022.04
8.3.00.0050.00322.40
8.2.180.0100.01018.43
8.2.170.0110.00422.96
8.2.160.0070.00719.33
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0100.00326.16
8.2.120.0030.00717.88
8.2.110.0030.00622.42
8.2.100.0000.01119.39
8.2.90.0050.00319.25
8.2.80.0090.00019.41
8.2.70.0050.00317.88
8.2.60.0080.00417.80
8.2.50.0030.00618.07
8.2.40.0000.00918.34
8.2.30.0060.00318.08
8.2.20.0040.00417.82
8.2.10.0030.00617.84
8.2.00.0040.00417.93
8.1.280.0070.01025.92
8.1.270.0040.00422.10
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.73
8.1.230.0000.01219.22
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0080.00017.53
8.1.180.0030.00718.74
8.1.170.0060.00318.64
8.1.160.0000.00822.07
8.1.150.0020.00518.74
8.1.140.0000.00717.54
8.1.130.0000.00817.73
8.1.120.0040.00317.49
8.1.110.0050.00317.45
8.1.100.0050.00217.58
8.1.90.0040.00417.45
8.1.80.0000.00717.44
8.1.70.0000.00717.50
8.1.60.0040.00417.68
8.1.50.0040.00417.61
8.1.40.0040.00417.62
8.1.30.0030.00517.69
8.1.20.0000.00817.73
8.1.10.0000.00817.68
8.1.00.0000.00817.67
8.0.300.0040.00418.77
8.0.290.0070.00017.04
8.0.280.0000.00818.46
8.0.270.0030.00317.38
8.0.260.0070.00016.84
8.0.250.0000.00717.12
8.0.240.0040.00417.09
8.0.230.0040.00417.08
8.0.220.0030.00317.03
8.0.210.0000.00716.95
8.0.200.0000.00717.03
8.0.190.0040.00417.03
8.0.180.0000.00817.01
8.0.170.0040.00416.91
8.0.160.0040.00416.84
8.0.150.0000.00716.85
8.0.140.0000.00716.95
8.0.130.0050.00013.43
8.0.120.0040.00416.83
8.0.110.0030.00516.81
8.0.100.0040.00417.04
8.0.90.0030.00516.88
8.0.80.0100.00716.99
8.0.70.0040.00416.95
8.0.60.0070.00016.76
8.0.50.0030.00517.01
8.0.30.0140.00617.33
8.0.20.0090.01217.40
8.0.10.0050.00216.96
8.0.00.0120.00517.01
7.4.330.0050.00015.00
7.4.320.0030.00316.64
7.4.300.0000.00816.76
7.4.290.0000.00716.71
7.4.280.0030.00616.70
7.4.270.0030.00316.68
7.4.260.0000.00716.54
7.4.250.0000.00816.71
7.4.240.0040.00416.62
7.4.230.0070.00016.66
7.4.220.0090.01016.82
7.4.210.0070.00816.71
7.4.200.0000.00716.50
7.4.190.0030.00316.58
7.4.160.0090.00616.66
7.4.150.0130.00317.40
7.4.140.0080.00817.86
7.4.130.0050.01316.63
7.4.120.0090.00816.63
7.4.110.0160.00316.70
7.4.100.0030.01416.85
7.4.90.0100.00716.52
7.4.80.0070.01519.39
7.4.70.0050.01416.82
7.4.60.0030.01316.46
7.4.50.0000.00816.64
7.4.40.0100.00722.77
7.4.30.0100.00716.60
7.4.00.0060.00615.01
7.3.330.0000.00513.31
7.3.320.0000.00613.35
7.3.310.0000.00716.38
7.3.300.0070.00016.41
7.3.290.0040.01116.41
7.3.280.0080.01016.40
7.3.270.0110.00617.40
7.3.260.0070.01116.88
7.3.250.0090.00716.67
7.3.240.0100.00716.63
7.3.230.0140.00316.61
7.3.210.0070.01116.45
7.3.200.0030.01416.45
7.3.190.0150.00416.63
7.3.180.0160.00016.70
7.3.170.0040.01216.53
7.3.160.0030.01316.88
7.3.120.0030.01014.89
7.2.330.0110.00716.87
7.2.320.0100.00716.73
7.2.310.0110.01116.92
7.2.300.0040.01316.82
7.2.290.0100.00716.60
7.2.60.0070.00717.12
7.1.200.0090.00315.63
7.1.70.0040.00417.24
7.1.60.0100.01419.82
7.1.50.0100.01617.16
7.1.00.0030.03322.35
7.0.200.0030.00716.84
7.0.140.0070.07021.92
7.0.60.0070.06720.05
7.0.50.0100.08017.89
7.0.40.0230.05320.06
7.0.30.0370.07720.20
7.0.20.0330.04320.35
7.0.10.0100.04720.18
7.0.00.0100.08720.05
5.6.280.0100.06321.02
5.6.210.0170.05720.74
5.6.200.0100.06318.17
5.6.190.0170.05020.33
5.6.180.3500.04720.56
5.6.170.0200.07720.71
5.6.160.0000.05020.55
5.6.150.0070.03318.19
5.6.140.0030.04018.11
5.6.130.0070.05018.18
5.6.120.0100.08020.99
5.6.110.0030.08721.00
5.6.100.0100.07720.97
5.6.90.0030.04320.99
5.6.80.0170.07020.39
5.5.350.0000.03720.38
5.5.340.0070.08718.02
5.5.330.0130.08320.29
5.5.320.0230.04720.51
5.5.310.0200.05720.41
5.5.300.0130.07317.93
5.5.290.0170.07318.02
5.5.280.0030.04020.97
5.5.270.0100.07720.96
5.5.260.0070.06020.75
5.5.250.0070.09020.70
5.5.240.0070.05320.23
5.4.450.0070.06019.47
5.4.440.0500.06719.27
5.4.430.0070.06019.66
5.4.420.0170.06319.50
5.4.410.0100.05719.09
5.4.400.0370.05318.82
5.4.390.0400.07018.74
5.4.380.0130.06318.49
5.4.370.0230.04318.58
5.4.360.0100.05718.61
5.4.350.0070.06018.61
5.4.340.0130.05318.48
5.4.320.0060.03812.45
5.4.310.0070.04012.45
5.4.300.0070.04512.45
5.4.290.0080.04212.45
5.4.280.0050.04012.34
5.4.270.0050.03712.34
5.4.260.0200.06319.02
5.4.250.0070.06318.86
5.4.240.0170.06018.80
5.4.230.0100.07718.86
5.4.220.0070.07018.79
5.4.210.0030.06018.90
5.4.200.0130.05018.89
5.4.190.0100.05318.88
5.4.180.0100.05318.88
5.4.170.0030.05718.87
5.4.160.0130.04718.72
5.4.150.0100.08018.74
5.4.140.0130.06016.24
5.4.130.0030.05716.28
5.4.120.0000.06716.28
5.4.110.0130.04716.49
5.4.100.0070.06316.43
5.4.90.0100.04716.30
5.4.80.0070.06016.25
5.4.70.0070.05716.48
5.4.60.0100.06016.32
5.4.50.0130.06716.36
5.4.40.0170.05016.35
5.4.30.0100.05316.18
5.4.20.0170.05016.23
5.4.10.0170.05316.39
5.4.00.0100.07315.74
5.3.290.0060.04412.80
5.3.280.0170.06014.61
5.3.270.0100.07714.75
5.3.260.0100.07314.58
5.3.250.0070.05014.38
5.3.240.0100.05014.45
5.3.230.0070.05714.59
5.3.220.0170.05014.58
5.3.210.0100.07014.48
5.3.200.0100.04314.48
5.3.190.0070.05314.57
5.3.180.0100.05014.58
5.3.170.0030.08014.45
5.3.160.0100.04714.65
5.3.150.0070.05314.66
5.3.140.0170.06014.47
5.3.130.0170.04014.55
5.3.120.0100.05014.55
5.3.110.0270.06014.64
5.3.100.0070.06713.92
5.3.90.0200.06713.89
5.3.80.0030.05714.04
5.3.70.0070.05713.87
5.3.60.0130.05013.70
5.3.50.0170.06313.81
5.3.40.0000.06013.99
5.3.30.0130.06713.82
5.3.20.0070.05013.56
5.3.10.0030.05013.50
5.3.00.0000.06013.33
5.2.170.0200.04011.05
5.2.160.0030.04311.07
5.2.150.0070.05311.07
5.2.140.0200.03711.15
5.2.130.0070.05711.10
5.2.120.0070.03711.11
5.2.110.0070.04011.19
5.2.100.0030.04011.21
5.2.90.0070.04011.11
5.2.80.0200.04710.98
5.2.70.0030.04710.85
5.2.60.0100.05311.06
5.2.50.0070.04011.01
5.2.40.0130.03011.00
5.2.30.0070.04010.86
5.2.20.0130.03710.97
5.2.10.0030.04310.94
5.2.00.0030.04310.79
5.1.60.0070.0379.90
5.1.50.0070.04310.02
5.1.40.0000.0479.88
5.1.30.0100.04710.50
5.1.20.0070.03710.33
5.1.10.0100.0409.91
5.1.00.0100.04710.12
5.0.50.0030.0338.45
5.0.40.0030.0308.37
5.0.30.0070.0478.30
5.0.20.0030.0278.10
5.0.10.0070.0378.13
5.0.00.0030.0438.35
4.4.90.0130.0237.48
4.4.80.0030.0237.48
4.4.70.0070.0237.48
4.4.60.0070.0237.48
4.4.50.0070.0177.48
4.4.40.0130.0337.48
4.4.30.0030.0337.48
4.4.20.0030.0237.48
4.4.10.0030.0307.48
4.4.00.0170.0307.48
4.3.110.0000.0277.48
4.3.100.0070.0237.48
4.3.90.0030.0237.48
4.3.80.0070.0707.48
4.3.70.0070.0337.48
4.3.60.0100.0207.48
4.3.50.0000.0277.48
4.3.40.0100.0337.48
4.3.30.0030.0277.48
4.3.20.0030.0207.48
4.3.10.0070.0207.48
4.3.00.0230.0306.90

preferences:
39.77 ms | 401 KiB | 5 Q