3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test =array(':1', ':1:', ':2', ':2:'); foreach ($test as $k) { $replaced = str_replace(':', '', $k); print "\n" . $replaced; }

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.0030.01318.55
8.3.50.0070.01321.08
8.3.40.0090.00618.85
8.3.30.0130.00718.84
8.3.20.0050.00220.04
8.3.10.0060.00320.46
8.3.00.0080.00019.26
8.2.180.0090.00616.75
8.2.170.0070.00722.96
8.2.160.0130.00320.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00322.06
8.2.110.0030.00620.53
8.2.100.0080.00417.84
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0040.00417.61
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0000.00818.16
8.2.30.0090.00018.12
8.2.20.0040.00417.58
8.2.10.0050.00218.11
8.2.00.0040.00417.73
8.1.280.0120.00625.92
8.1.270.0000.00922.05
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0070.00423.83
8.1.230.0040.00822.69
8.1.220.0020.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.39
8.1.160.0000.00721.99
8.1.150.0050.00218.96
8.1.140.0000.00717.32
8.1.130.0000.00617.79
8.1.120.0070.00017.43
8.1.110.0040.00417.45
8.1.100.0020.00517.44
8.1.90.0030.00317.43
8.1.80.0030.00317.37
8.1.70.0070.00017.30
8.1.60.0090.00017.56
8.1.50.0060.00317.52
8.1.40.0000.00817.42
8.1.30.0040.00417.48
8.1.20.0070.00017.57
8.1.10.0060.00317.38
8.1.00.0040.00417.42
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.30
8.0.270.0030.00317.16
8.0.260.0070.00017.16
8.0.250.0070.00016.91
8.0.240.0040.00416.80
8.0.230.0030.00316.95
8.0.220.0040.00416.74
8.0.210.0030.00316.77
8.0.200.0000.00716.90
8.0.190.0060.00316.91
8.0.180.0030.00316.74
8.0.170.0070.00316.80
8.0.160.0080.00016.91
8.0.150.0000.00816.90
8.0.140.0100.00016.88
8.0.130.0000.00613.30
8.0.120.0040.00416.86
8.0.110.0060.00316.71
8.0.100.0050.00316.79
8.0.90.0040.00416.91
8.0.80.0000.01616.93
8.0.70.0080.00016.94
8.0.60.0050.00216.68
8.0.50.0040.00416.76
8.0.30.0070.01217.03
8.0.20.0140.00717.43
8.0.10.0000.00716.99
8.0.00.0110.01116.78
7.4.330.0050.00015.00
7.4.320.0030.00316.41
7.4.300.0000.00616.48
7.4.290.0000.00716.59
7.4.280.0070.00316.49
7.4.270.0040.00416.64
7.4.260.0050.00316.48
7.4.250.0000.00716.38
7.4.240.0010.00616.51
7.4.230.0000.00716.48
7.4.220.0100.01716.57
7.4.210.0170.00316.61
7.4.200.0000.00716.30
7.4.160.0100.00716.52
7.4.150.0090.00917.40
7.4.140.0070.00917.86
7.4.130.0120.00916.48
7.4.120.0090.00916.59
7.4.110.0030.01616.43
7.4.100.0100.00716.59
7.4.90.0100.00716.50
7.4.80.0090.01319.39
7.4.70.0140.00316.46
7.4.60.0030.01416.43
7.4.50.0080.00016.56
7.4.40.0100.00716.59
7.4.30.0080.01216.41
7.4.00.0040.01415.13
7.3.330.0050.00013.16
7.3.320.0000.00513.20
7.3.310.0000.00716.34
7.3.300.0030.00316.09
7.3.290.0110.00416.31
7.3.280.0040.01116.22
7.3.270.0080.00817.40
7.3.260.0100.00716.25
7.3.250.0070.01016.23
7.3.240.0100.00716.33
7.3.230.0090.00916.55
7.3.210.0180.00316.26
7.3.200.0070.01019.39
7.3.190.0060.00916.42
7.3.180.0120.00316.32
7.3.170.0120.00916.52
7.3.160.0080.01116.44
7.2.330.0100.00716.79
7.2.320.0000.01716.72
7.2.310.0030.01416.64
7.2.300.0090.00916.62
7.2.290.0080.00816.77
7.2.00.0060.00919.33
7.1.100.0090.00617.96
7.1.70.0050.00317.01
7.1.60.0100.01319.32
7.1.50.0090.00916.96
7.1.00.0100.07022.28
7.0.200.0040.00416.81
7.0.140.0030.07721.98
7.0.60.0130.03719.82
7.0.50.0130.06317.77
7.0.40.0130.08320.04
7.0.30.0270.05020.18
7.0.20.0230.07020.19
7.0.10.0030.04320.13
7.0.00.0070.08319.99
5.6.280.0070.07021.13
5.6.210.0030.04020.64
5.6.200.0000.07318.09
5.6.190.0070.08320.46
5.6.180.0470.06720.56
5.6.170.0270.04320.34
5.6.160.0070.07320.61
5.6.150.0130.07718.22
5.6.140.0030.07718.10
5.6.130.0070.04718.19
5.6.120.0100.07720.89
5.6.110.0070.08320.98
5.6.100.0030.06020.96
5.6.90.0070.08721.01
5.6.80.0100.07720.37
5.5.350.0200.06720.41
5.5.340.0100.07718.02
5.5.330.0070.06720.14
5.5.320.0330.04320.35
5.5.310.0100.04720.29
5.5.300.0070.05017.98
5.5.290.0030.04717.96
5.5.280.0100.07320.73
5.5.270.0100.03320.77
5.5.260.0070.08720.79
5.5.250.0030.08320.70
5.5.240.0330.06020.25
5.4.450.1300.05019.24
5.4.440.1030.06019.53
5.4.430.1070.05719.27
5.4.420.0630.00019.30
5.4.410.0670.00019.42
5.4.400.0830.00019.33
5.4.390.0800.00018.94
5.4.380.0670.00019.07
5.4.370.0600.00019.04
5.4.360.0630.00019.05
5.4.350.0600.00019.15
5.4.340.0630.00019.05
5.4.320.0060.03612.46
5.4.310.0060.03712.45
5.4.300.0010.04012.46
5.4.290.0040.03812.45
5.4.280.0040.03712.35
5.4.270.0060.03512.35
5.4.260.0050.03712.35
5.4.250.0040.03912.35
5.4.240.0040.03812.35
5.4.230.0060.04012.34
5.4.220.0070.03712.34
5.4.210.0070.04212.34
5.4.200.0090.05012.34
5.4.190.0050.04812.34
5.4.180.0030.04012.34
5.4.170.0120.03912.35
5.4.160.0080.03712.35
5.4.150.0060.03412.34
5.4.140.0070.03512.03
5.4.130.0070.03512.02
5.4.120.0030.03811.97
5.4.110.0030.03811.97
5.4.100.0050.03511.96
5.4.90.0040.03711.97
5.4.80.0030.03811.96
5.4.70.0100.03711.96
5.4.60.0090.04411.96
5.4.50.0050.03711.96
5.4.40.0050.03711.95
5.4.30.0070.04311.95
5.4.20.0070.04411.95
5.4.10.0050.03311.95
5.4.00.0060.03411.44
5.3.290.0060.03812.80
5.3.280.0030.04012.71
5.3.270.0070.04712.73
5.3.260.0070.03812.72
5.3.250.0040.03912.72
5.3.240.0060.03512.72
5.3.230.0030.04312.71
5.3.220.0040.03812.68
5.3.210.0060.03712.68
5.3.200.0060.03412.68
5.3.190.0060.03612.68
5.3.180.0030.03812.67
5.3.170.0050.03612.67
5.3.160.0070.03512.68
5.3.150.0070.03712.68
5.3.140.0050.04212.66
5.3.130.0110.04912.66
5.3.120.0050.04612.66
5.3.110.0030.04012.66
5.3.100.0050.03712.12
5.3.90.0020.04412.09
5.3.80.0070.03512.07
5.3.70.0030.03912.07
5.3.60.0060.03512.06
5.3.50.0040.03812.00
5.3.40.0050.03912.00
5.3.30.0060.03711.94
5.3.20.0100.03511.72
5.3.10.0040.03511.69
5.3.00.0060.04011.68
5.2.170.0080.0269.18
5.2.160.0030.0309.18
5.2.150.0040.0309.18
5.2.140.0020.0329.18
5.2.130.0030.0299.13
5.2.120.0080.0249.13
5.2.110.0060.0279.14
5.2.100.0050.0299.14
5.2.90.0070.0279.15
5.2.80.0030.0319.13
5.2.70.0060.0289.13
5.2.60.0040.0349.09
5.2.50.0060.0289.05
5.2.40.0030.0299.03
5.2.30.0030.0309.01
5.2.20.0030.0299.00
5.2.10.0050.0278.92
5.2.00.0050.0278.77
5.1.60.0060.0288.06
5.1.50.0060.0308.06
5.1.40.0040.0328.04
5.1.30.0030.0268.39
5.1.20.0050.0278.41
5.1.10.0030.0268.14
5.1.00.0040.0258.14
5.0.50.0040.0196.61
5.0.40.0020.0196.47
5.0.30.0000.0346.29
5.0.20.0040.0186.25
5.0.10.0040.0196.23
5.0.00.0020.0316.23
4.4.90.0010.0174.78
4.4.80.0050.0124.75
4.4.70.0030.0154.76
4.4.60.0030.0154.76
4.4.50.0060.0124.77
4.4.40.0020.0254.71
4.4.30.0010.0204.76
4.4.20.0030.0144.84
4.4.10.0040.0184.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0010.0164.66
4.3.90.0020.0164.63
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0030.0234.54
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0040.0133.22
4.3.00.0070.0108.06

preferences:
64.47 ms | 401 KiB | 5 Q