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); echo "\n"; $main_string = "CSE/4/2014/23"; $sub_string = "CSE/4/2014"; echo trim(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.0040.01418.31
8.3.50.0130.00718.05
8.3.40.0150.00018.61
8.3.30.0100.00718.38
8.3.20.0000.00818.91
8.3.10.0000.00719.08
8.3.00.0000.00823.61
8.2.180.0140.00716.38
8.2.170.0080.00622.96
8.2.160.0070.01019.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00519.89
8.2.120.0040.00426.35
8.2.110.0060.00320.45
8.2.100.0120.00017.49
8.2.90.0050.00317.91
8.2.80.0000.00717.97
8.2.70.0030.00617.80
8.2.60.0000.00817.93
8.2.50.0050.00318.10
8.2.40.0040.00419.50
8.2.30.0030.00319.33
8.2.20.0000.00717.96
8.2.10.0030.00618.04
8.2.00.0070.00019.35
8.1.280.0110.00425.92
8.1.270.0040.00422.20
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.67
8.1.230.0070.00422.80
8.1.220.0030.00617.74
8.1.210.0100.00018.77
8.1.200.0040.00417.23
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0000.00818.52
8.1.160.0070.00018.81
8.1.150.0070.00018.82
8.1.140.0080.00017.67
8.1.130.0000.00818.98
8.1.120.0040.00417.40
8.1.110.0070.00217.43
8.1.100.0090.00017.27
8.1.90.0050.00317.39
8.1.80.0000.00717.39
8.1.70.0000.01017.41
8.1.60.0040.00717.53
8.1.50.0040.00417.41
8.1.40.0050.00317.52
8.1.30.0000.00817.58
8.1.20.0000.00917.49
8.1.10.0050.00317.45
8.1.00.0040.00417.45
8.0.300.0040.00420.04
8.0.290.0000.00816.75
8.0.280.0030.00318.34
8.0.270.0000.00717.25
8.0.260.0030.00317.25
8.0.250.0000.00616.86
8.0.240.0000.00817.01
8.0.230.0030.00316.78
8.0.220.0000.00816.86
8.0.210.0000.00716.81
8.0.200.0000.00716.77
8.0.190.0000.00916.89
8.0.180.0040.00416.80
8.0.170.0080.00016.72
8.0.160.0030.00416.84
8.0.150.0040.00716.78
8.0.140.0000.00716.61
8.0.130.0030.00313.30
8.0.120.0000.00716.82
8.0.110.0040.00416.78
8.0.100.0040.00416.64
8.0.90.0080.00016.80
8.0.80.0070.00716.79
8.0.70.0030.00516.85
8.0.60.0000.00716.73
8.0.50.0050.00216.62
8.0.30.0150.00417.04
8.0.20.0130.00617.40
8.0.10.0000.00716.96
8.0.00.0090.00816.61
7.4.330.0050.00015.55
7.4.320.0030.00316.36
7.4.300.0030.00316.34
7.4.290.0030.00316.42
7.4.280.0000.00716.44
7.4.270.0060.00316.43
7.4.260.0070.00016.46
7.4.250.0000.00716.50
7.4.240.0070.00016.40
7.4.230.0000.00716.23
7.4.220.0000.00916.59
7.4.210.0080.00916.52
7.4.200.0070.00016.28
7.4.160.0080.00716.39
7.4.140.0100.01217.86
7.4.130.0110.00616.46
7.4.120.0110.00816.52
7.4.110.0140.00416.41
7.4.100.0110.00516.49
7.4.90.0090.01216.44
7.4.80.0070.01019.39
7.4.70.0120.00916.45
7.4.60.0060.01016.50
7.4.50.0120.00516.50
7.4.40.0150.00616.35
7.4.00.0040.00714.99
7.3.330.0020.00212.94
7.3.320.0000.00512.98
7.3.310.0030.00316.15
7.3.300.0070.00016.04
7.3.290.0030.00316.15
7.3.280.0080.00616.07
7.3.260.0110.00716.36
7.3.240.0090.00916.34
7.3.230.0030.01316.64
7.3.210.0030.01316.24
7.3.200.0150.00616.20
7.3.190.0080.00816.52
7.3.180.0100.01016.22
7.3.170.0100.01016.17
7.3.160.0120.00316.13
7.3.10.0130.00316.16
7.3.00.0090.00616.10
7.2.330.0090.01616.66
7.2.320.0090.00916.57
7.2.310.0160.00816.66
7.2.300.0100.00716.48
7.2.290.0080.01216.58
7.2.130.0070.01016.41
7.2.120.0100.00316.07
7.2.110.0140.00416.07
7.2.100.0070.00716.37
7.2.90.0160.00316.39
7.2.80.0080.00716.48
7.2.70.0090.00816.43
7.2.60.1060.00815.50
7.2.50.1010.00715.73
7.2.40.0850.00415.74
7.2.30.0910.00715.46
7.2.20.0850.00515.33
7.2.10.1030.00715.54
7.2.00.0880.00815.64
7.1.250.0100.01115.54
7.1.200.0080.00515.74
7.1.170.1910.00613.65
7.1.160.1730.00913.61
7.1.150.1790.00813.61
7.1.140.1900.00813.91
7.1.130.1680.00713.82
7.1.120.1650.00813.79
7.1.110.1660.00613.48
7.1.100.1880.00913.79
7.1.90.2120.01213.63
7.1.80.1940.00813.89
7.1.70.1610.00713.81
7.1.60.2020.01131.82
7.1.50.2200.01331.67
7.1.40.1880.00931.88
7.1.30.2080.01231.87
7.1.20.2280.01531.95
7.1.10.1540.00913.77
7.1.00.1530.00513.68

preferences:
64.74 ms | 400 KiB | 5 Q