3v4l.org

run code in 300+ PHP versions simultaneously
<?php $main_string = "23/CSE/4/2014"; $sub_string = "/CSE/4/2014"; echo str_replace($sub_string, '', $main_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.60.0080.00818.18
8.3.50.0070.01418.30
8.3.40.0140.00018.67
8.3.30.0040.01118.54
8.3.20.0050.00318.99
8.3.10.0080.00019.34
8.3.00.0060.00323.71
8.2.180.0030.01616.63
8.2.170.0070.00722.96
8.2.160.0070.00719.38
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00419.85
8.2.120.0040.00426.35
8.2.110.0060.00319.27
8.2.100.0040.00717.72
8.2.90.0000.00920.36
8.2.80.0080.00020.48
8.2.70.0000.00918.04
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0020.00519.30
8.2.30.0000.00719.49
8.2.20.0040.00417.93
8.2.10.0070.00017.93
8.2.00.0030.00319.37
8.1.280.0060.00925.92
8.1.270.0080.00022.15
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0070.00323.96
8.1.230.0040.00720.91
8.1.220.0030.00617.76
8.1.210.0000.00818.79
8.1.200.0090.00017.13
8.1.190.0050.00517.22
8.1.180.0050.00318.10
8.1.170.0040.00418.54
8.1.160.0080.00018.86
8.1.150.0040.00418.68
8.1.140.0000.00717.50
8.1.130.0030.00619.11
8.1.120.0000.00817.30
8.1.110.0110.00017.38
8.1.100.0030.00617.36
8.1.90.0000.00717.38
8.1.80.0000.00717.44
8.1.70.0000.01117.28
8.1.60.0070.00317.43
8.1.50.0000.00817.38
8.1.40.0050.00317.35
8.1.30.0040.00417.57
8.1.20.0000.00817.61
8.1.10.0060.00317.40
8.1.00.0040.00417.44
8.0.300.0050.00219.89
8.0.290.0030.00616.75
8.0.280.0030.00318.51
8.0.270.0030.00316.69
8.0.260.0030.00317.17
8.0.250.0050.00317.01
8.0.240.0030.00616.91
8.0.230.0030.00316.92
8.0.220.0000.00716.86
8.0.210.0000.00716.71
8.0.200.0000.00616.88
8.0.190.0020.00516.78
8.0.180.0040.00416.89
8.0.170.0000.00816.84
8.0.160.0000.00716.80
8.0.150.0030.00716.68
8.0.140.0070.00016.80
8.0.130.0050.00013.19
8.0.120.0050.00216.84
8.0.110.0000.00716.79
8.0.100.0030.00316.73
8.0.90.0000.00716.89
8.0.80.0080.01116.85
8.0.70.0000.00816.88
8.0.60.0040.00416.84
8.0.50.0070.00016.83
8.0.30.0070.00917.11
8.0.20.0210.00017.40
8.0.10.0070.00016.91
8.0.00.0050.01216.62
7.4.330.0000.00415.55
7.4.320.0040.00416.53
7.4.300.0040.00416.45
7.4.290.0070.00016.48
7.4.280.0000.00716.44
7.4.270.0070.00316.45
7.4.260.0040.00416.29
7.4.250.0040.00416.48
7.4.240.0000.00716.34
7.4.230.0030.00316.64
7.4.220.0050.00316.51
7.4.210.0100.00716.51
7.4.200.0030.00316.42
7.4.160.0100.01016.36
7.4.140.0130.00817.86
7.4.130.0110.00616.53
7.4.120.0110.00916.47
7.4.110.0100.00716.51
7.4.100.0110.00716.40
7.4.90.0070.01016.44
7.4.80.0070.00819.39
7.4.70.0120.00916.39
7.4.60.0120.00316.48
7.4.50.0080.00216.23
7.4.40.0160.00316.35
7.4.00.0030.01014.98
7.3.330.0000.00513.06
7.3.320.0030.00313.05
7.3.310.0040.00416.09
7.3.300.0030.00315.97
7.3.290.0030.00316.21
7.3.280.0060.01116.19
7.3.260.0080.01016.18
7.3.240.0110.00716.27
7.3.230.0090.00916.29
7.3.210.0090.01216.41
7.3.200.0090.00916.43
7.3.190.0090.00916.35
7.3.180.0110.00716.17
7.3.170.0100.00716.18
7.3.160.0000.01516.42
7.2.330.0130.00616.49
7.2.320.0160.00016.58
7.2.310.0110.00716.49
7.2.300.0040.01216.45
7.2.290.0030.01516.49
7.2.80.0070.00416.53
7.2.60.1030.01014.78
7.2.50.0920.00514.80
7.2.40.1190.01114.73
7.2.30.1060.00814.98
7.2.20.1250.00614.83
7.2.10.1370.00814.73
7.2.00.1050.01014.86
7.1.200.0120.00015.50
7.1.170.1090.00713.71
7.1.160.0980.00713.66
7.1.150.0980.00913.79
7.1.140.1230.00813.59
7.1.130.1090.00713.64
7.1.120.1180.00913.59
7.1.110.1180.00713.70
7.1.100.1210.00913.66
7.1.90.1200.00513.49
7.1.80.1110.00713.91
7.1.70.0990.00713.91
7.1.60.1430.00931.94
7.1.50.1260.01031.98
7.1.40.1310.01331.80
7.1.30.1300.01231.96
7.1.20.1300.01131.83
7.1.10.1920.00713.76
7.1.00.1110.01213.72

preferences:
59.86 ms | 400 KiB | 5 Q