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 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.0120.00618.27
8.3.50.0130.00717.93
8.3.40.0090.00618.67
8.3.30.0140.00418.45
8.3.20.0050.00319.01
8.3.10.0040.00419.14
8.3.00.0050.00323.61
8.2.180.0190.00316.47
8.2.170.0100.00322.96
8.2.160.0150.00019.37
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00419.82
8.2.120.0040.00426.35
8.2.110.0070.00422.20
8.2.100.0060.00618.86
8.2.90.0030.00617.63
8.2.80.0060.00318.53
8.2.70.0000.00817.50
8.2.60.0000.00817.63
8.2.50.0030.00617.63
8.2.40.0030.00519.35
8.2.30.0040.00419.51
8.2.20.0030.00518.11
8.2.10.0070.00017.98
8.2.00.0000.00719.36
8.1.280.0080.00825.92
8.1.270.0000.00822.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00822.19
8.1.230.0070.00419.22
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00817.10
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0030.00617.62
8.1.160.0000.00818.75
8.1.150.0040.00418.81
8.1.140.0050.00317.55
8.1.130.0030.00718.92
8.1.120.0060.00317.41
8.1.110.0030.00717.25
8.1.100.0090.00317.39
8.1.90.0050.00317.38
8.1.80.0000.00717.36
8.1.70.0080.00317.27
8.1.60.0070.00717.51
8.1.50.0040.00417.36
8.1.40.0080.00017.39
8.1.30.0030.00517.50
8.1.20.0040.00417.63
8.1.10.0030.00617.54
8.1.00.0000.00717.29
8.0.300.0030.00619.79
8.0.290.0050.00216.63
8.0.280.0030.00318.31
8.0.270.0050.00317.17
8.0.260.0040.00417.25
8.0.250.0070.00016.96
8.0.240.0100.00016.93
8.0.230.0030.00316.92
8.0.220.0000.00716.80
8.0.210.0000.00716.82
8.0.200.0040.00416.90
8.0.190.0080.00016.89
8.0.180.0030.00616.84
8.0.170.0020.00516.88
8.0.160.0000.00816.78
8.0.150.0060.00316.70
8.0.140.0000.00816.77
8.0.130.0000.00613.21
8.0.120.0040.00416.79
8.0.110.0000.00716.73
8.0.100.0040.00416.93
8.0.90.0040.00416.61
8.0.80.0070.00916.82
8.0.70.0040.00416.77
8.0.60.0040.00416.77
8.0.50.0080.00016.64
8.0.30.0110.00817.01
8.0.20.0040.01517.40
8.0.10.0040.00417.01
8.0.00.0120.00716.68
7.4.330.0020.00215.55
7.4.320.0040.00416.54
7.4.300.0030.00316.54
7.4.290.0070.00016.57
7.4.280.0000.00716.32
7.4.270.0070.00316.34
7.4.260.0030.00316.51
7.4.250.0070.00016.50
7.4.240.0080.00016.42
7.4.230.0030.00316.43
7.4.220.0050.00316.41
7.4.210.0070.00816.49
7.4.200.0070.00016.32
7.4.160.0100.00716.42
7.4.140.0080.01017.86
7.4.130.0130.00316.51
7.4.120.0110.00916.44
7.4.110.0160.00016.43
7.4.100.0120.00416.33
7.4.90.0130.00516.45
7.4.80.0170.00619.39
7.4.70.0030.01316.49
7.4.60.0090.00616.32
7.4.50.0080.00816.46
7.4.40.0120.01216.57
7.4.00.0040.01114.97
7.3.330.0000.00513.05
7.3.320.0000.00513.00
7.3.310.0000.00716.18
7.3.300.0000.00716.10
7.3.290.0000.00615.97
7.3.280.0030.01316.12
7.3.260.0100.00716.34
7.3.240.0090.00816.30
7.3.230.0100.01016.45
7.3.210.0080.00816.34
7.3.200.0090.00616.19
7.3.190.0120.00616.43
7.3.180.0100.00616.43
7.3.170.0080.01216.44
7.3.160.0060.01216.53
7.3.120.0090.00614.70
7.3.110.0060.01214.52
7.3.100.0040.01414.85
7.3.90.0070.00714.84
7.3.80.0100.00314.62
7.3.70.0030.00714.42
7.3.60.0070.00714.69
7.3.50.0070.00414.56
7.3.40.0070.00714.49
7.3.30.0070.00714.64
7.3.20.0040.01016.37
7.3.10.0110.00416.45
7.3.00.0100.00316.27
7.2.330.0250.00016.48
7.2.320.0100.00716.48
7.2.310.0120.00616.53
7.2.300.0080.00816.58
7.2.290.0100.01416.20
7.2.250.0090.00914.76
7.2.240.0000.01914.70
7.2.230.0040.01114.82
7.2.220.0070.01115.10
7.2.210.0030.01014.87
7.2.200.0040.00714.88
7.2.190.0040.00414.68
7.2.180.0000.01314.87
7.2.170.0070.00714.80
7.2.160.0000.01214.82
7.2.150.0040.01116.86
7.2.140.0070.00716.93
7.2.130.0090.00616.84
7.2.120.0060.00616.83
7.2.110.0040.01216.72
7.2.100.0090.00016.69
7.2.90.0040.00416.63
7.2.80.0050.00816.42
7.2.70.0030.01016.86
7.2.60.0600.00915.71
7.2.50.0820.00815.65
7.2.40.0700.00915.84
7.2.30.0670.01015.98
7.2.20.0800.00815.91
7.2.10.0650.00716.01
7.2.00.0720.01115.80
7.1.330.0190.00015.55
7.1.320.0030.01315.93
7.1.310.0070.00715.55
7.1.300.0000.00815.76
7.1.290.0000.00915.61
7.1.280.0070.00315.82
7.1.270.0070.01015.56
7.1.260.0070.00315.70
7.1.250.0070.00715.41
7.1.240.0040.01115.93
7.1.230.0030.01015.64
7.1.220.0060.00615.68
7.1.210.0100.00315.70
7.1.200.0080.00815.51
7.1.190.0030.00615.68
7.1.180.0090.00615.71
7.1.170.0670.00814.84
7.1.160.0670.01014.72
7.1.150.0720.00514.78
7.1.140.0780.00314.85
7.1.130.0620.00814.77
7.1.120.0970.00414.85
7.1.110.0700.00114.78
7.1.100.0600.00914.82
7.1.90.0620.01014.83
7.1.80.0770.00914.79
7.1.70.0960.00614.71
7.1.60.0970.00823.67
7.1.50.0810.00923.66
7.1.40.0840.00823.73
7.1.30.1030.01323.78
7.1.20.0900.00723.65
7.1.10.0790.01214.63
7.1.00.1090.01014.52
7.0.330.0090.00615.48
7.0.320.0050.00315.31
7.0.310.0030.01015.42
7.0.300.0030.00715.17
7.0.290.0030.01015.25
7.0.280.0070.00715.30
7.0.270.0060.00315.36
7.0.260.0060.00615.34
7.0.250.0030.00615.27
7.0.240.0060.00315.55
7.0.230.0060.00615.41
7.0.220.0040.00415.27
7.0.210.0040.00715.46
7.0.200.0080.00015.30
7.0.190.0030.00915.13
7.0.180.0000.01215.42
7.0.170.0130.00315.37
7.0.160.0040.01115.40
7.0.150.0060.01315.52
7.0.140.0090.00315.45
7.0.130.0030.01015.34
7.0.120.0060.00614.94
7.0.110.0060.00315.24
7.0.100.0030.00615.40
7.0.90.0030.00815.25
7.0.80.0060.00315.43
7.0.70.0030.01015.29
7.0.60.0050.00315.37
7.0.50.0070.00715.34
7.0.40.0060.01013.28
7.0.30.0030.00613.53
7.0.20.0050.00313.15
7.0.10.0080.00313.55
7.0.00.0080.00013.50
5.6.400.0110.00014.56
5.6.390.0040.00714.14
5.6.380.0000.01114.48
5.6.370.0030.00613.90
5.6.360.0060.00614.03
5.6.350.0040.00814.23
5.6.340.0040.00914.25
5.6.330.0060.00613.94
5.6.320.0050.00514.24
5.6.310.0040.01114.66
5.6.300.0080.00614.07
5.6.290.0030.01014.02
5.6.280.0070.00714.28
5.6.270.0040.00414.37
5.6.260.0030.00614.19
5.6.250.0040.00813.99
5.6.240.0000.01014.11
5.6.230.0090.00614.20
5.6.220.0000.01214.16
5.6.210.0040.00814.13
5.6.200.0030.00614.26
5.6.190.0040.01114.25
5.6.180.0130.00014.09
5.6.170.0030.00914.30
5.6.160.0060.00314.26
5.6.150.0070.00713.96
5.6.140.0060.00614.37
5.6.130.0120.00314.32
5.6.120.0030.00514.32
5.6.110.0090.00014.04
5.6.100.0060.00314.16
5.6.90.0030.00614.37
5.6.80.0110.00014.31
5.6.70.0060.00914.18
5.6.60.0000.01714.33
5.6.50.0030.01014.21
5.6.40.0030.00714.03
5.6.30.0040.00414.25
5.6.20.0060.00314.04
5.6.10.0060.00914.15
5.6.00.0000.01514.04

preferences:
64.15 ms | 401 KiB | 5 Q