3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "456-678-978=>6;567-734-565=>8;"; echo str_replace("567-734-565=>8;", "", $str);

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.1.100.0000.00717.32
8.1.90.0020.00517.43
8.1.80.0030.00317.30
8.1.70.0000.00717.42
8.1.60.0080.00017.39
8.1.50.0060.00617.34
8.1.40.0030.00517.37
8.1.30.0050.00317.60
8.1.20.0000.00717.54
8.1.10.0080.00017.57
8.1.00.0000.00717.43
8.0.230.0000.00716.87
8.0.220.0030.00516.71
8.0.210.0000.00716.71
8.0.200.0070.00016.80
8.0.190.0000.01016.79
8.0.180.0040.00416.75
8.0.170.0040.00416.76
8.0.160.0000.00716.84
8.0.150.0070.00016.72
8.0.140.0030.00516.68
8.0.130.0060.00013.34
8.0.120.0040.00416.69
8.0.110.0050.00216.71
8.0.100.0040.00416.78
8.0.90.0000.00716.84
8.0.80.0100.01016.80
8.0.70.0040.00416.84
8.0.60.0020.00516.69
8.0.50.0000.00816.74
8.0.30.0080.00816.84
8.0.20.0090.01017.40
8.0.10.0030.00516.84
8.0.00.0060.01316.62
7.4.300.0060.00016.43
7.4.290.0030.00316.51
7.4.280.0080.00016.52
7.4.270.0000.00716.54
7.4.260.0080.00016.51
7.4.250.0030.00316.47
7.4.240.0030.00516.53
7.4.230.0000.00816.27
7.4.220.0040.01516.58
7.4.210.0150.00616.59
7.4.200.0040.00416.32
7.4.160.0010.01516.46
7.4.150.0110.00717.40
7.4.140.0100.00917.86
7.4.130.0070.00916.52
7.4.120.0120.00616.39
7.4.110.0070.01016.29
7.4.100.0030.01316.38
7.4.90.0130.00616.52
7.4.80.0120.00619.39
7.4.70.0060.01316.45
7.4.60.0120.00916.38
7.4.50.0070.00716.43
7.4.40.0070.01016.60
7.4.30.0090.00916.53
7.4.00.0090.00614.97
7.3.330.0030.00312.97
7.3.320.0000.00512.98
7.3.310.0030.00316.19
7.3.300.0070.00015.98
7.3.290.0070.00816.16
7.3.280.0070.01016.17
7.3.270.0120.00917.40
7.3.260.0140.00416.47
7.3.250.0130.00816.23
7.3.240.0100.00916.45
7.3.230.0060.01016.43
7.3.210.0130.00316.60
7.3.200.0080.00816.25
7.3.190.0130.00516.52
7.3.180.0060.01316.44
7.3.170.0110.00616.14
7.3.160.0040.01416.32
7.2.330.0120.00916.29
7.2.320.0050.01116.54
7.2.310.0030.01316.62
7.2.300.0120.01016.55
7.2.290.0100.00616.64
7.2.80.0380.00614.86
7.2.70.0380.00314.75
7.2.60.0220.00815.75
7.2.50.0430.01014.96
7.2.40.0400.00714.64
7.2.30.0510.00314.96
7.2.20.0490.00714.84
7.2.10.0650.00714.90
7.2.00.0160.01117.16
7.1.200.0300.00713.74
7.1.190.0390.00013.84
7.1.180.0350.00313.58
7.1.170.0450.01313.88
7.1.160.0580.00913.75
7.1.150.0410.00613.78
7.1.140.0320.00913.88
7.1.130.0390.00714.03
7.1.120.0390.00713.63
7.1.110.0420.00613.98
7.1.100.0280.00615.77
7.1.90.0780.00713.98
7.1.80.0370.01213.80
7.1.70.0110.00515.56
7.1.60.0160.01325.75
7.1.50.0740.01031.99
7.1.40.0990.01331.89
7.1.30.0200.02031.81
7.1.20.0580.01431.83
7.1.10.0350.00913.91
7.1.00.0190.04518.04
7.0.310.0290.00613.36
7.0.300.0460.00313.39
7.0.290.0570.00413.18
7.0.270.0460.00813.46
7.0.260.0620.00013.32
7.0.250.0470.01013.22
7.0.240.0560.00013.67
7.0.230.0590.01013.52
7.0.220.0580.00613.21
7.0.210.0420.00313.53
7.0.200.0630.00514.07
7.0.190.0660.00313.69
7.0.180.0830.00913.34
7.0.170.0730.01013.65
7.0.160.0820.00713.44
7.0.150.0400.01113.42
7.0.140.0500.00313.65
7.0.130.0470.00813.36
7.0.120.0370.01313.61
7.0.110.0320.01113.41
7.0.100.0480.00613.51
7.0.90.0480.03516.69
7.0.80.0520.03016.80
7.0.70.0350.03516.79
7.0.60.0220.03716.74
7.0.50.0290.03517.04
7.0.40.0310.03616.97
7.0.30.0320.03517.07
7.0.20.0350.03616.91
7.0.10.0680.03616.88
7.0.00.0280.03516.93
5.6.300.0080.00314.46
5.6.290.0110.00913.90
5.6.280.0090.01214.48
5.6.270.0140.01014.07
5.6.260.0150.00514.18
5.6.250.0140.00614.18
5.6.240.0220.03317.36
5.6.230.0120.02917.55
5.6.220.0160.02817.35
5.6.210.0090.03617.55
5.6.200.0210.03617.57
5.6.190.0070.04417.55
5.6.180.0160.03517.59
5.6.170.0090.03717.74
5.6.160.0150.03517.50
5.6.150.0170.03117.66
5.6.140.0090.04317.46
5.6.130.0120.03717.65
5.6.120.0110.03317.68
5.6.110.0120.04717.66
5.6.100.0120.03917.46
5.6.90.0110.03517.73
5.6.80.0120.03917.25
5.6.70.0170.03517.23
5.6.60.0200.03317.24
5.6.50.0210.03217.27
5.6.40.0090.03717.30
5.6.30.0150.03717.35
5.6.20.0180.03517.24
5.6.10.0140.03817.27
5.6.00.0130.02817.16
5.5.380.0090.00510.87
5.5.370.0060.01210.71
5.5.360.0110.00510.80
5.5.350.0150.00310.92
5.5.340.0130.00310.72
5.5.330.0110.00510.94
5.5.320.0060.01010.97
5.5.310.0150.00211.02
5.5.300.0110.00411.06
5.5.290.0070.01010.96
5.5.280.0110.00411.08
5.5.270.0150.00310.72
5.5.260.0150.00410.90
5.5.250.0130.00310.73
5.5.240.0060.00610.95
5.5.230.0130.00011.12
5.5.220.0130.00310.65
5.5.210.0070.00710.97
5.5.200.0110.00811.02
5.5.190.0090.00611.05
5.5.180.0120.00310.93
5.5.160.0140.00310.71
5.5.150.0140.00010.93
5.5.140.0130.00410.87
5.5.130.0080.00510.87
5.5.120.0100.00710.97
5.5.110.0090.00611.07
5.5.100.0050.01110.97
5.5.90.0100.00310.93
5.5.80.0070.00710.69
5.5.70.0090.00610.81
5.5.60.0110.00510.71
5.5.50.0080.00810.89
5.5.40.0100.01010.72
5.5.30.0120.00210.70
5.5.20.0100.00510.87
5.5.10.0100.00710.82
5.5.00.0110.00510.76
5.4.450.0080.00810.95
5.4.440.0080.00810.63
5.4.430.0130.00310.74
5.4.420.0070.00810.88
5.4.410.0120.00410.97
5.4.400.0070.00710.65
5.4.390.0110.00610.63
5.4.380.0140.00010.82
5.4.370.0090.00310.92
5.4.360.0110.00310.77
5.4.350.0070.00710.59
5.4.340.0080.00810.91
5.4.320.0090.00510.92
5.4.310.0080.00510.82
5.4.300.0070.00510.51
5.4.290.0100.00811.10
5.4.280.0080.00810.73
5.4.270.0100.00210.91
5.4.260.0080.00810.79
5.4.250.0050.00710.69
5.4.240.0150.00010.66
5.4.230.0070.00710.54
5.4.220.0110.00610.82
5.4.210.0130.00311.00
5.4.200.0080.00810.77
5.4.190.0170.00010.91
5.4.180.0080.00410.67
5.4.170.0090.00410.82
5.4.160.0110.00410.66
5.4.150.0090.00610.72
5.4.140.0110.00310.93
5.4.130.0090.00610.82
5.4.120.0100.00310.92
5.4.110.0040.01110.93
5.4.100.0060.01010.98
5.4.90.0090.00611.05
5.4.80.0080.00810.94
5.4.70.0060.00610.77
5.4.60.0080.00810.67
5.4.50.0090.00410.79
5.4.40.0080.00810.93
5.4.30.0120.00410.84
5.4.20.0070.01010.82
5.4.10.0110.00411.06
5.4.00.0040.01110.70
5.3.290.0050.00710.46
5.3.280.0100.00310.14
5.3.270.0060.00610.50
5.3.260.0130.00010.39
5.3.250.0140.00310.39
5.3.240.0120.00210.17
5.3.230.0070.00810.18
5.3.220.0100.00510.28
5.3.210.0120.00210.03
5.3.200.0050.00810.20
5.3.190.0040.00910.33
5.3.180.0120.00410.24
5.3.170.0070.00810.37
5.3.160.0080.00810.45
5.3.150.0090.00510.35
5.3.140.0120.00010.18
5.3.130.0130.00010.42
5.3.120.0090.00610.24
5.3.110.0090.00410.40
5.3.100.0140.00010.40
5.3.90.0100.00310.23
5.3.80.0060.01010.20
5.3.70.0120.00610.21
5.3.60.0110.00410.22
5.3.50.0070.00710.36
5.3.40.0080.00810.25
5.3.30.0060.00610.25
5.3.20.0090.00310.37
5.3.10.0140.00010.06
5.3.00.0140.00210.07
5.2.170.0000.0099.44
5.2.160.0130.0009.48
5.2.150.0000.0139.42
5.2.140.0050.0059.41
5.2.130.0090.0049.41
5.2.120.0040.0089.44
5.2.110.0090.0049.38
5.2.100.0110.0029.41
5.2.90.0080.0049.26
5.2.80.0120.0009.32
5.2.70.0050.0059.28
5.2.60.0080.0039.26
5.2.50.0090.0009.26
5.2.40.0110.0009.30
5.2.30.0060.0069.26
5.2.20.0120.0009.26
5.2.10.0090.0009.26
5.2.00.0120.0009.26
5.1.60.0110.0009.26
5.1.50.0040.0049.26
5.1.40.0000.0079.26
5.1.30.0040.0069.26
5.1.20.0050.0059.26
5.1.10.0030.0089.26
5.1.00.0080.0039.26
5.0.50.0090.0009.26
5.0.40.0100.0009.26
5.0.30.0080.0009.26
5.0.20.0040.0049.26
5.0.10.0050.0029.26
5.0.00.0030.0039.26
4.4.90.0070.0009.26
4.4.80.0000.0059.26
4.4.70.0020.0049.26
4.4.60.0070.0009.26
4.4.50.0000.0069.26
4.4.40.0060.0039.26
4.4.30.0030.0039.26
4.4.20.0060.0009.26
4.4.10.0030.0039.26
4.4.00.0040.0049.26
4.3.110.0000.0079.26
4.3.100.0040.0049.26
4.3.90.0030.0069.26
4.3.80.0040.0039.26
4.3.70.0060.0009.26
4.3.60.0050.0039.26
4.3.50.0020.0049.26
4.3.40.0040.0029.26
4.3.30.0050.0039.26
4.3.20.0050.0009.26
4.3.10.0020.0059.26
4.3.00.0070.0009.26

preferences:
57.35 ms | 411 KiB | 12 Q