3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = "mens:apparel, mens:footwear"; print_r(str_replace(' ', '', $array1));

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.70.0070.00718.43
8.3.60.0070.00716.50
8.3.50.0090.00721.88
8.3.40.0120.00618.71
8.3.30.0090.00618.89
8.3.20.0040.00420.20
8.3.10.0040.00423.66
8.3.00.0000.00819.13
8.2.180.0230.00016.32
8.2.170.0210.00022.96
8.2.160.0100.00320.45
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0080.00022.25
8.2.110.0070.00320.55
8.2.100.0060.00617.54
8.2.90.0040.00418.01
8.2.80.0040.00418.04
8.2.70.0040.00417.38
8.2.60.0080.00017.66
8.2.50.0000.00818.07
8.2.40.0030.00619.75
8.2.30.0040.00418.09
8.2.20.0080.00017.64
8.2.10.0040.00417.98
8.2.00.0030.00717.48
8.1.280.0150.00625.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.13
8.1.230.0040.00721.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00517.16
8.1.180.0030.00718.64
8.1.170.0000.00918.65
8.1.160.0030.00321.84
8.1.150.0030.00618.45
8.1.140.0040.00417.25
8.1.130.0030.00317.73
8.1.120.0020.00517.30
8.1.110.0070.00417.27
8.1.100.0040.00317.31
8.1.90.0000.00717.40
8.1.80.0050.00217.46
8.1.70.0070.00017.33
8.1.60.0040.00417.54
8.1.50.0030.00517.32
8.1.40.0030.00617.44
8.1.30.0040.00417.43
8.1.20.0000.00817.64
8.1.10.0000.00717.43
8.1.00.0000.00717.27
8.0.300.0040.00420.16
8.0.290.0030.00517.18
8.0.280.0030.00318.29
8.0.270.0000.00717.14
8.0.260.0030.00317.18
8.0.250.0000.00816.91
8.0.240.0000.00616.77
8.0.230.0000.00716.76
8.0.220.0070.00016.72
8.0.210.0040.00416.82
8.0.200.0040.00416.88
8.0.190.0000.00716.94
8.0.180.0080.00016.79
8.0.170.0040.00416.73
8.0.160.0040.00416.84
8.0.150.0000.00816.63
8.0.140.0050.00316.73
8.0.130.0030.00313.27
8.0.120.0040.00416.67
8.0.110.0030.00416.79
8.0.100.0000.00716.86
8.0.90.0000.00716.81
8.0.80.0100.01016.79
8.0.70.0040.00416.88
8.0.60.0040.00416.72
8.0.50.0000.00716.81
8.0.30.0150.00516.89
8.0.20.0080.01117.40
8.0.10.0040.00416.81
8.0.00.0140.00516.65
7.4.330.0030.00315.00
7.4.320.0060.00016.47
7.4.300.0000.00616.34
7.4.290.0070.00016.52
7.4.280.0060.00316.55
7.4.270.0030.00416.53
7.4.260.0000.00816.38
7.4.250.0080.00016.41
7.4.240.0030.00416.48
7.4.230.0030.00316.45
7.4.220.0070.01116.48
7.4.210.0050.01016.40
7.4.200.0040.00416.50
7.4.190.0070.00016.29
7.4.160.0090.00816.36
7.4.150.0110.00717.40
7.4.140.0080.00917.86
7.4.130.0130.00416.35
7.4.120.0060.01016.47
7.4.110.0030.01316.54
7.4.100.0090.00916.20
7.4.90.0100.00716.60
7.4.80.0030.01319.39
7.4.70.0100.00616.52
7.4.60.0150.00616.22
7.4.50.0020.00216.28
7.4.40.0090.00922.77
7.4.30.0030.01316.56
7.4.00.0110.00414.90
7.3.330.0000.00613.02
7.3.320.0060.00012.86
7.3.310.0030.00316.19
7.3.300.0040.00416.11
7.3.290.0080.00516.17
7.3.280.0090.00716.12
7.3.270.0100.01317.40
7.3.260.0090.00916.10
7.3.250.0120.00516.12
7.3.240.0110.00616.40
7.3.230.0030.01316.39
7.3.210.0030.01416.06
7.3.200.0100.00716.23
7.3.190.0120.00916.30
7.3.180.0060.00916.22
7.3.170.0030.01616.45
7.3.160.0120.00316.02
7.3.120.0000.01714.95
7.3.10.0040.01116.65
7.3.00.0030.01016.54
7.2.330.0130.00316.49
7.2.320.0060.00916.56
7.2.310.0100.00516.50
7.2.300.0130.00316.51
7.2.290.0140.00316.59
7.2.130.0030.00616.84
7.2.120.0070.00716.52
7.2.110.0060.01016.88
7.2.100.0080.00516.52
7.2.90.0080.00816.64
7.2.80.0060.00616.74
7.2.70.0060.00316.73
7.2.60.0000.01116.67
7.2.50.0070.00716.52
7.2.40.0000.01116.78
7.2.30.0000.01016.52
7.2.20.0000.01416.75
7.2.10.0030.01016.71
7.2.00.0030.00916.61
7.1.250.0040.00815.55
7.1.70.0040.01216.97
7.1.60.0130.01019.46
7.1.50.0170.01034.69
7.1.00.0000.07722.42
7.0.200.0000.00716.77
7.0.140.0070.07322.18
7.0.60.0100.06020.00
7.0.50.0070.08017.89
7.0.40.0070.07020.27
7.0.30.0500.07720.02
7.0.20.0300.07720.16
7.0.10.0100.08320.02
7.0.00.0070.08320.11
5.6.280.0100.06721.16
5.6.210.0100.07720.50
5.6.200.0100.07318.11
5.6.190.0030.09320.61
5.6.180.4130.04020.43
5.6.170.0430.06320.40
5.6.160.0100.08020.47
5.6.150.0030.04318.21
5.6.140.0030.04018.21
5.6.130.0130.08018.21
5.6.120.0170.07320.89
5.6.110.0170.07720.96
5.6.100.0070.07021.00
5.6.90.0000.04720.97
5.6.80.0070.07020.48
5.6.70.4800.03720.39
5.5.350.0270.06320.34
5.5.340.0000.05017.91
5.5.330.0070.07720.52
5.5.320.0230.08320.20
5.5.310.0200.04720.28
5.5.300.0200.03718.02
5.5.290.0030.06017.98
5.5.280.0030.07720.86
5.5.270.0100.04320.68
5.5.260.0070.03720.67
5.5.250.0070.08320.49
5.5.240.0300.07020.00
5.4.450.0300.05319.26
5.4.440.0630.04319.22
5.4.430.0430.03719.48
5.4.420.0730.04019.54
5.4.410.0600.03719.29
5.4.400.0570.04319.21
5.4.390.0630.02319.10
5.4.380.0300.06018.53
5.4.370.0300.06018.67
5.4.360.0300.05318.46
5.4.350.0370.05718.49
5.4.340.0370.06018.62
5.4.320.0040.04312.45
5.4.310.0090.03912.45
5.4.300.0100.04312.45
5.4.290.0110.03712.43
5.4.280.0110.03612.33
5.4.270.0060.04012.33
5.4.260.0090.03712.33
5.4.250.0060.04012.33
5.4.240.0080.03612.33
5.4.230.0090.03712.32
5.4.220.0040.03912.32
5.4.210.0070.04112.32
5.4.200.0070.03812.32
5.4.190.0090.03712.32
5.4.180.0070.04012.32
5.4.170.0090.03712.33
5.4.160.0090.03912.33
5.4.150.0110.03812.32
5.4.140.0070.04012.00
5.4.130.0060.03912.00
5.4.120.0070.03811.95
5.4.110.0080.03711.95
5.4.100.0050.03911.95
5.4.90.0100.03411.95
5.4.80.0110.04511.95
5.4.70.0110.04511.94
5.4.60.0160.06211.95
5.4.50.0060.05211.94
5.4.40.0100.05611.93
5.4.30.0060.05511.93
5.4.20.0070.05611.93
5.4.10.0050.05311.93
5.4.00.0070.04311.42
5.3.290.0080.03712.80
5.3.280.0050.05012.71
5.3.270.0090.06812.72
5.3.260.0230.07312.72
5.3.250.0100.06012.72
5.3.240.0100.06012.72
5.3.230.0130.04712.71
5.3.220.0060.05412.68
5.3.210.0150.09812.68
5.3.200.0030.05412.68
5.3.190.0100.07212.68
5.3.180.0100.04512.68
5.3.170.0060.05312.67
5.3.160.0100.04812.68
5.3.150.0080.04312.68
5.3.140.0080.04812.66
5.3.130.0090.04112.65
5.3.120.0110.04112.66
5.3.110.0070.04112.66
5.3.100.0060.04512.12
5.3.90.0090.04912.08
5.3.80.0060.04512.07
5.3.70.0060.03712.07
5.3.60.0080.04212.07
5.3.50.0040.04012.00
5.3.40.0060.04612.00
5.3.30.0070.05311.94
5.3.20.0100.04211.71
5.3.10.0110.04411.69
5.3.00.0060.03811.68
5.2.170.0070.0299.18
5.2.160.0050.0319.18
5.2.150.0040.0379.18
5.2.140.0070.0369.18
5.2.130.0090.0429.13
5.2.120.0080.0399.13
5.2.110.0050.0329.14
5.2.100.0070.0279.13
5.2.90.0060.0449.14
5.2.80.0120.0519.13
5.2.70.0070.0459.13
5.2.60.0060.0479.09
5.2.50.0080.0439.05
5.2.40.0090.0399.03
5.2.30.0080.0439.00
5.2.20.0120.0379.00
5.2.10.0050.0398.92
5.2.00.0060.0418.77
5.1.60.0140.0558.06
5.1.50.0160.0408.05
5.1.40.0040.0378.04
5.1.30.0030.0308.39
5.1.20.0060.0418.41
5.1.10.0070.0248.14
5.1.00.0080.0288.13
5.0.50.0050.0316.61
5.0.40.0100.0206.47
5.0.30.0070.0416.28
5.0.20.0070.0256.26
5.0.10.0060.0296.23
5.0.00.0000.0396.22
4.4.90.0030.0324.78
4.4.80.0040.0294.75
4.4.70.0030.0234.75
4.4.60.0040.0234.75
4.4.50.0040.0194.77
4.4.40.0030.0364.70
4.4.30.0060.0194.76
4.4.20.0060.0194.85
4.4.10.0050.0194.85
4.4.00.0050.0294.75
4.3.110.0050.0194.67
4.3.100.0010.0234.66
4.3.90.0020.0214.64
4.3.80.0110.0404.58
4.3.70.0020.0214.63
4.3.60.0100.0384.63
4.3.50.0030.0244.62
4.3.40.0040.0264.53
4.3.30.0040.0163.27
4.3.20.0020.0173.25
4.3.10.0010.0173.21
4.3.00.0030.01313.17

preferences:
41.49 ms | 401 KiB | 5 Q