3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
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
hhvm-3.22.00.1080.21290.22
hhvm-3.21.30.1070.21189.86
hhvm-3.21.00.1170.17790.13
hhvm-3.20.20.1440.18789.79
hhvm-3.19.20.1370.20689.27
hhvm-3.18.50.0800.17987.93
hhvm-3.18.40.1270.19088.34
hhvm-3.17.30.1020.22986.92
hhvm-3.15.40.1020.16884.70
hhvm-3.13.20.1070.16796.46
hhvm-3.12.140.1320.17494.89
hhvm-3.11.10.1340.19587.18
hhvm-3.10.10.1090.16784.18
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