3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '--ACT-- active --INA-- inactive user --EDI-- Banned user'; $text = str_replace(array('--ACT--','--INA--','--EDI--','%%'), array('<div class="wp"><b>1</b>','%%<div class="wp"><b>2</b>','%%<div class="wp"><b>3</b>','</div>'), $text.'%%'); print $text; //prints: <div class="wp"><b>1</b> active </div><div class="wp"><b>2</b> inactive user </div><div class="wp"><b>3</b> Banned user</div>

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.5.10.0120.00816.57
8.5.00.0140.00719.90
8.4.150.0020.00114.05
8.4.140.0100.01217.39
8.4.130.0140.00617.85
8.4.120.0140.00520.51
8.4.110.0050.00522.32
8.4.100.0110.00518.61
8.4.90.0090.01118.49
8.4.80.0040.00419.49
8.4.70.0110.00917.89
8.4.60.0120.00718.70
8.4.50.0130.00720.30
8.4.40.0090.01017.67
8.4.30.0110.00717.76
8.4.20.0080.00417.59
8.4.10.0170.00319.54
8.3.280.0120.00920.18
8.3.270.0110.00816.39
8.3.260.0120.00716.43
8.3.250.0100.00818.91
8.3.240.0100.00816.70
8.3.230.0130.00716.45
8.3.220.0060.00216.97
8.3.210.0110.00516.47
8.3.200.0040.00516.50
8.3.190.0120.00717.03
8.3.180.0130.00716.40
8.3.170.0140.00417.00
8.3.160.0150.00316.61
8.3.150.0120.00620.48
8.3.140.0030.00617.23
8.3.130.0030.01518.23
8.3.120.0030.00618.87
8.3.110.0040.00420.94
8.3.100.0000.01024.06
8.3.90.0060.00326.77
8.3.80.0060.00318.31
8.3.70.0130.00618.25
8.3.60.0040.01418.15
8.3.50.0090.00917.91
8.3.40.0080.00818.67
8.3.30.0090.00618.72
8.3.20.0060.00318.99
8.3.10.0040.00423.71
8.3.00.0030.00523.48
8.2.290.0090.00220.25
8.2.280.0170.00118.56
8.2.270.0090.00617.14
8.2.260.0100.01016.45
8.2.250.0080.00016.38
8.2.240.0030.00618.74
8.2.230.0090.00022.58
8.2.220.0050.00537.54
8.2.210.0000.00826.77
8.2.200.0100.00018.04
8.2.190.0190.00016.58
8.2.180.0000.01416.38
8.2.170.0090.00622.96
8.2.160.0030.01018.91
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00020.35
8.2.120.0050.00226.35
8.2.110.0060.01022.31
8.2.100.0040.00817.78
8.2.90.0070.00019.09
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0040.00417.38
8.2.50.0040.00417.63
8.2.40.0050.00319.35
8.2.30.0000.00719.11
8.2.20.0080.00018.05
8.2.10.0080.00018.02
8.2.00.0000.00819.49
8.1.330.0060.00922.14
8.1.320.0130.00616.09
8.1.310.0050.00318.38
8.1.300.0040.01118.14
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0100.00623.73
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.96
8.1.230.0120.00019.16
8.1.220.0040.00417.74
8.1.210.0050.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00217.22
8.1.180.0030.00618.10
8.1.170.0000.00718.83
8.1.160.0040.00418.77
8.1.150.0040.00418.69
8.1.140.0000.00718.98
8.1.130.0000.00717.24
8.1.120.0050.00317.36
8.1.110.0080.00017.34
8.1.100.0020.00517.40
8.1.90.0060.00317.38
8.1.80.0000.00717.41
8.1.70.0040.00417.43
8.1.60.0060.00317.57
8.1.50.0060.00317.45
8.1.40.0060.00317.38
8.1.30.0050.00617.58
8.1.20.0000.01017.57
8.1.10.0080.00017.49
8.1.00.0000.00717.36
8.0.300.0030.00318.77
8.0.290.0000.00916.75
8.0.280.0050.00318.48
8.0.270.0040.00417.23
8.0.260.0080.00016.73
8.0.250.0070.00016.95
8.0.240.0050.00216.98
8.0.230.0000.00716.93
8.0.220.0070.00016.77
8.0.210.0000.00716.78
8.0.200.0040.00416.88
8.0.190.0040.00416.84
8.0.180.0030.00516.89
8.0.170.0040.00416.86
8.0.160.0000.00716.92
8.0.150.0040.00416.90
8.0.140.0030.00316.73
8.0.130.0060.00013.31
8.0.120.0000.00716.76
8.0.110.0000.00716.86
8.0.100.0050.00316.76
8.0.90.0000.00816.78
8.0.80.0130.00616.86
8.0.70.0070.00016.90
8.0.60.0040.00416.92
8.0.50.0000.00816.84
8.0.30.0130.00617.03
8.0.20.0100.00817.40
8.0.10.0040.00416.74
8.0.00.0110.01116.89
7.4.330.0030.00315.55
7.4.320.0000.00616.45
7.4.300.0030.00316.46
7.4.290.0060.00016.55
7.4.280.0050.00316.56
7.4.270.0100.00016.54
7.4.260.0000.00716.43
7.4.250.0070.00016.44
7.4.240.0030.00316.45
7.4.230.0040.00416.41
7.4.220.0000.00716.47
7.4.210.0030.01316.47
7.4.200.0050.00216.33
7.4.160.0110.00616.49
7.4.140.0070.01217.86
7.4.130.0120.00616.36
7.4.120.0100.01016.35
7.4.110.0110.00716.49
7.4.100.0120.00416.49
7.4.90.0130.00416.31
7.4.80.0140.00619.39
7.4.70.0030.01416.54
7.4.60.0120.00616.30
7.4.50.0070.01016.47
7.4.40.0120.00416.34
7.4.00.0080.01014.83
7.3.330.0050.00013.02
7.3.320.0030.00313.10
7.3.310.0000.00916.04
7.3.300.0040.00416.27
7.3.290.0000.00616.03
7.3.280.0090.00816.18
7.3.260.0120.00716.36
7.3.240.0130.00816.31
7.3.230.0070.01016.43
7.3.210.0110.00916.52
7.3.200.0060.00916.70
7.3.190.0090.00616.28
7.3.180.0110.00516.43
7.3.170.0100.00616.21
7.3.160.0030.01316.42
7.3.120.0070.00714.42
7.3.110.0070.01014.74
7.3.100.0060.00614.55
7.3.90.0040.01514.55
7.3.80.0030.00714.76
7.3.70.0040.01214.59
7.3.60.0060.00914.78
7.3.50.0000.01414.67
7.3.40.0080.00614.83
7.3.30.0070.01014.75
7.3.20.0070.00716.48
7.3.10.0060.00916.35
7.3.00.0050.00816.22
7.2.330.0120.01216.85
7.2.320.0030.01416.40
7.2.310.0090.00916.43
7.2.300.0120.01016.63
7.2.290.0110.01116.46
7.2.250.0150.00315.07
7.2.240.0070.01414.96
7.2.230.0030.01014.93
7.2.220.0000.01614.68
7.2.210.0060.00314.84
7.2.200.0080.00415.06
7.2.190.0090.00615.11
7.2.180.0100.00714.83
7.2.170.0030.01314.88
7.2.130.0070.00716.98
7.2.120.0070.00716.67
7.2.110.0000.01316.80
7.2.100.0030.00716.68
7.2.90.0040.00816.56
7.2.80.0280.00615.55
7.2.70.0340.01216.06
7.2.60.0470.00616.02
7.2.50.0230.01216.02
7.2.40.0460.00716.04
7.2.30.0310.01216.00
7.2.20.0250.00915.98
7.2.10.0250.01015.90
7.2.00.0310.00315.84
7.1.330.0070.00715.71
7.1.320.0030.01115.51
7.1.310.0060.01015.60
7.1.300.0040.00815.68
7.1.290.0060.00915.79
7.1.280.0110.00415.67
7.1.270.0060.00615.83
7.1.260.0000.00915.55
7.1.250.0030.00715.79
7.1.240.0030.00615.90
7.1.230.0050.00515.67
7.1.220.0100.00015.93
7.1.210.0060.00315.79
7.1.200.0020.01015.86
7.1.190.0340.00714.62
7.1.180.0280.01314.72
7.1.170.0310.00714.65
7.1.160.0510.00614.82
7.1.150.0270.00714.96
7.1.140.0320.00314.81
7.1.130.0330.00514.80
7.1.120.0260.00814.71
7.1.110.0270.00814.70
7.1.100.0240.01014.77
7.1.90.0490.00914.79
7.1.80.0300.00514.90
7.1.70.0330.00214.69
7.1.60.0400.01023.71
7.1.50.0910.01323.74
7.1.40.0610.01323.66
7.1.30.0980.00923.66
7.1.20.0660.00823.69
7.1.10.0930.00714.75
7.1.00.0350.00614.78
7.0.330.0060.00315.25
5.6.380.0030.00713.90

preferences:
50.15 ms | 403 KiB | 5 Q