3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'world cup'; $arr = explode("\n",$test); $C= new stdClass(); $C->AUTO_HASHTAG = $arr; $myarr = array("world cup"); foreach($myarr as &$ht){ if(strpos($ht,'o')!==false) $myarr[] = str_replace('o','O',$ht); if(strpos($ht,'O')!==false) $myarr[] = str_replace('O','o',$ht); } var_export($myarr);

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.40.0240.07540.75
8.3.30.0400.05041.30
8.3.20.0170.02742.38
8.3.10.0130.02344.53
8.3.00.0130.03240.05
8.2.170.0270.05341.16
8.2.160.0290.05242.47
8.2.150.0130.03241.39
8.2.140.0130.03442.53
8.2.130.0060.02642.98
8.2.120.0210.03142.59
8.2.110.0160.04541.44
8.2.100.0300.04639.96
8.2.90.0210.03541.31
8.2.80.0100.04539.55
8.2.70.0110.04939.66
8.2.60.0130.04339.88
8.2.50.0100.04539.61
8.2.40.0100.04240.52
8.2.30.0070.04440.16
8.2.20.0200.03739.63
8.2.10.0070.05039.98
8.2.00.0100.04539.77
8.1.270.0300.02748.17
8.1.260.0270.02345.05
8.1.250.0240.03148.46
8.1.240.0200.04748.32
8.1.230.0290.04545.14
8.1.220.0070.05443.68
8.1.210.0140.04543.46
8.1.200.0070.05743.37
8.1.190.0190.04243.36
8.1.180.0330.02643.80
8.1.170.0160.04344.47
8.1.160.0100.04847.91
8.1.150.0170.04344.59
8.1.140.0130.04643.52
8.1.130.0070.05143.71
8.1.120.0100.04843.39
8.1.110.0160.05543.36
8.1.100.0130.04743.38
8.1.90.0170.04343.49
8.1.80.0100.04943.49
8.1.70.0100.04743.36
8.1.60.0030.06043.60
8.1.50.0100.05143.56
8.1.40.0140.04743.57
8.1.30.0230.05343.63
8.1.20.0170.04343.52
8.1.10.0320.08169.58
8.1.00.0170.09669.62
8.0.300.0170.08772.16
8.0.290.0330.08668.81
8.0.280.0130.10070.56
8.0.270.0230.08969.36
8.0.260.0230.09069.24
8.0.250.0270.08368.94
8.0.240.0230.08769.01
8.0.230.0270.09069.04
8.0.220.0230.08668.95
8.0.210.0390.09168.88
8.0.200.0200.09068.96
8.0.190.0270.08769.00
8.0.180.0240.09169.03
8.0.170.0240.09168.97
8.0.160.0340.08168.88
8.0.150.0200.10268.96
8.0.140.0340.07768.96
8.0.130.0510.174117.57
8.0.120.0300.08668.84
8.0.110.0200.09268.93
8.0.100.0170.09968.98
8.0.90.0100.10268.94
8.0.80.0770.22068.89
8.0.70.0340.07768.95
8.0.60.0400.08368.86
8.0.50.0400.07068.98
8.0.30.0700.17169.05
8.0.20.0750.15269.23
8.0.10.0270.08668.99
8.0.00.0620.16568.83
7.4.330.0070.10065.73
7.4.320.0290.07868.49
7.4.300.0230.09068.39
7.4.290.0170.09768.58
7.4.280.0360.11368.39
7.4.270.0160.09868.51
7.4.260.0330.08068.47
7.4.250.0340.08468.57
7.4.240.0250.08868.54
7.4.230.0360.07368.61
7.4.220.0660.18568.44
7.4.210.0510.15568.52
7.4.200.0300.08568.31
7.4.190.0130.09668.39
7.4.160.0730.12968.41
7.4.150.0700.13768.40
7.4.140.0730.19968.64
7.4.130.0610.19868.56
7.4.120.0780.13968.53
7.4.110.0720.15568.37
7.4.100.0620.16668.59
7.4.90.0620.16468.70
7.4.80.0630.20268.51
7.4.70.0530.18568.67
7.4.60.0560.16768.29
7.4.50.0160.06168.65
7.4.40.0790.14268.40
7.4.30.0650.19768.70
7.4.10.0500.25766.98
7.4.00.0320.21166.94
7.3.330.0540.194109.11
7.3.320.0470.170109.32
7.3.310.0380.07564.05
7.3.300.0240.08864.27
7.3.290.0660.14164.32
7.3.280.0760.17064.21
7.3.270.0670.14764.34
7.3.260.0990.11364.26
7.3.250.0770.19064.42
7.3.240.0580.16064.17
7.3.230.0490.16764.52
7.3.210.1040.22164.46
7.3.200.0800.16764.61
7.3.190.0700.14664.10
7.3.180.0830.14664.29
7.3.170.0600.20364.55
7.3.160.0720.18964.15
7.3.130.0330.26062.82
7.3.120.0350.17962.90
7.3.110.0300.21063.10
7.3.100.0300.21063.04
7.3.90.0300.17662.85
7.3.80.0400.21662.52
7.3.70.0430.19363.00
7.3.60.0590.20762.66
7.3.50.0200.23962.67
7.3.40.0330.20162.91
7.3.30.0260.19562.55
7.3.20.0230.21664.68
7.3.10.0430.20864.51
7.3.00.0660.19664.41
7.2.330.0670.16264.75
7.2.320.0720.18764.47
7.2.310.0670.18164.41
7.2.300.0640.17064.65
7.2.290.0650.17164.82
7.2.260.0400.26763.28
7.2.250.0300.22662.92
7.2.240.0360.23263.40
7.2.230.0330.25063.30
7.2.220.0300.23663.00
7.2.210.0460.20963.14
7.2.200.0460.18863.23
7.2.190.0500.22363.12
7.2.180.0340.22263.12
7.2.170.0370.22062.94
7.2.160.0270.21763.11
7.2.150.0400.17764.62
7.2.140.0260.20864.81
7.2.130.1540.19464.54
7.2.120.1640.19064.54
7.2.110.0410.20364.75
7.2.100.0460.21464.81
7.2.90.0490.20464.89
7.2.80.0850.16564.68
7.2.70.0500.21064.71
7.2.60.0660.18764.68
7.2.50.0560.19864.91
7.2.40.0480.19764.83
7.2.30.0520.22864.92
7.2.20.0500.21964.83
7.2.10.0440.18564.79
7.2.00.0250.17565.79
7.1.330.0030.24663.93
7.1.320.0130.22863.98
7.1.310.0200.21163.68
7.1.300.0170.23663.68
7.1.290.0100.22063.97
7.1.280.0170.26163.66
7.1.270.0070.22263.95
7.1.260.0230.22563.75
7.1.250.1750.27563.41
7.1.240.0270.23263.61
7.1.230.0200.25563.43
7.1.220.0130.23663.77
7.1.210.0130.20763.80
7.1.200.0920.18663.52
7.1.190.0170.26063.83
7.1.180.0230.26563.56
7.1.170.0130.23563.71
7.1.160.1040.24463.89
7.1.150.0170.26363.78
7.1.140.0200.25863.84
7.1.130.1760.22663.64
7.1.120.0800.25463.58
7.1.110.0200.26163.84
7.1.100.0480.12247.09
7.1.90.2200.21063.83
7.1.80.0200.22363.71
7.1.70.0140.17864.36
7.1.60.0280.17964.47
7.1.50.0210.18964.44
7.1.40.0260.22363.45
7.1.30.0390.22063.59
7.1.20.0150.0039.63
7.1.10.0270.20463.72
7.1.00.0110.17160.11
7.0.330.0370.28163.46
7.0.320.0270.26263.22
7.0.310.0130.20763.47
7.0.300.0070.21763.10
7.0.290.0230.22263.30
7.0.280.0200.25663.30
7.0.270.0200.22863.41
7.0.260.0200.22663.42
7.0.250.0100.22663.62
7.0.240.0070.23363.60
7.0.230.0200.22763.32
7.0.220.0240.22263.48
7.0.210.0130.23063.46
7.0.200.0210.16164.11
7.0.190.0300.21863.38
7.0.180.0600.24263.52
7.0.170.0460.21263.23
7.0.160.0330.22163.39
7.0.150.0180.00011.21
7.0.140.0160.12947.58
7.0.130.0410.22663.31
7.0.120.0100.22763.58
7.0.110.0700.24863.53
7.0.100.0230.21863.52
7.0.90.0300.24263.38
7.0.80.0330.22763.40
7.0.70.0440.21563.44
7.0.60.0720.19765.69
7.0.50.0190.18464.74
7.0.40.0240.18633.40
7.0.30.0500.19633.73
7.0.20.0400.20033.70
7.0.10.0270.20633.68
7.0.00.0150.17733.70
5.6.400.0000.00714.39
5.6.390.0000.00914.42
5.6.380.0070.00414.16
5.6.370.0030.00614.36
5.6.360.0000.01514.58
5.6.350.0050.00514.46
5.6.340.0070.01014.65
5.6.330.0030.01014.37
5.6.320.0120.00014.66
5.6.310.0130.00714.21
5.6.300.0190.00814.65
5.6.290.0070.01514.50
5.6.280.0100.03917.85
5.6.270.0110.01814.51
5.6.260.0140.01014.43
5.6.250.0100.01814.62
5.6.240.0220.00414.55
5.6.230.0190.00614.39
5.6.220.0150.01114.59
5.6.210.0080.04717.55
5.6.200.0140.02416.19
5.6.190.0090.02517.30
5.6.180.0140.03717.50
5.6.170.0220.03617.30
5.6.160.0120.02517.57
5.6.150.0080.03116.32
5.6.140.0060.02916.28
5.6.130.0150.04216.31
5.6.120.0110.04917.82
5.6.110.0120.03517.85
5.6.100.0080.03217.78
5.6.90.0080.03717.65
5.6.80.0030.03217.40
5.6.70.0180.01114.32
5.6.60.0190.01014.40
5.6.50.0080.01914.35
5.6.40.0110.01814.31
5.6.30.0090.01814.08
5.6.20.0200.00614.42
5.6.10.0180.00914.40
5.6.00.0130.01614.30
5.5.380.0190.00214.58
5.5.370.0160.00814.18
5.5.360.0170.00214.40
5.5.350.0170.04617.51
5.5.340.0130.04416.07
5.5.330.0130.02817.42
5.5.320.0130.04817.44
5.5.310.0200.04017.12
5.5.300.0160.04016.11
5.5.290.0120.03216.08
5.5.280.0140.04717.50
5.5.270.0150.04317.74
5.5.260.0130.04317.60
5.5.250.0040.03417.55
5.5.240.0210.04217.26
5.5.230.0130.01014.20
5.5.220.0130.01314.21
5.5.210.0090.01314.33
5.5.200.0080.01514.24
5.5.190.0180.00914.18
5.5.180.0090.01814.26
5.5.170.0170.00914.39
5.5.160.0130.01314.25
5.5.150.0100.01714.46
5.5.140.0110.01114.40
5.5.130.0160.00514.36
5.5.120.0140.01414.45
5.5.110.0140.01114.43
5.5.100.0140.01214.46
5.5.90.0200.00714.43
5.5.80.0160.01214.38
5.5.70.0180.00614.16
5.5.60.0080.01714.09
5.5.50.0130.01313.91
5.5.40.0200.00714.41
5.5.30.0130.01314.20
5.5.20.0140.01014.44
5.5.10.0160.01014.39
5.5.00.0110.01714.41
5.4.450.0530.03215.35
5.4.440.0530.03215.46
5.4.430.0430.03115.25
5.4.420.0250.03715.08
5.4.410.0120.03515.28
5.4.400.0140.02915.21
5.4.390.0300.02815.02
5.4.380.0120.03014.66
5.4.370.0200.02214.92
5.4.360.0190.02414.76
5.4.350.0090.03514.83
5.4.340.0120.03114.78
5.4.330.0080.01211.11
5.4.320.0060.02511.78
5.4.310.0080.02411.84
5.4.300.0100.02411.66
5.4.290.0120.02011.69
5.4.280.0110.02211.71
5.4.270.0080.02411.75
5.4.260.0110.02011.70
5.4.250.0100.02211.67
5.4.240.0070.02311.65
5.4.230.0080.02911.65
5.4.220.0110.02011.77
5.4.210.0110.02911.68
5.4.200.0110.03411.72
5.4.190.0090.03011.69
5.4.180.0110.03111.63
5.4.170.0090.03011.78
5.4.160.0100.03111.55
5.4.150.0140.02711.70
5.4.140.0080.03211.61
5.4.130.0090.02711.48
5.4.120.0110.03611.51
5.4.110.0100.03211.60
5.4.100.0130.03111.52
5.4.90.0100.02511.54
5.4.80.0090.02111.48
5.4.70.0060.02211.59
5.4.60.0080.02111.43
5.4.50.0080.02911.50
5.4.40.0100.02511.61
5.4.30.0070.03011.49
5.4.20.0120.02911.49
5.4.10.0140.02611.52
5.4.00.0090.02811.28
5.3.290.0090.02211.63
5.3.280.0100.02211.57
5.3.270.0080.03211.63
5.3.260.0080.03411.68
5.3.250.0080.02311.60
5.3.240.0030.02711.58
5.3.230.0090.02511.51
5.3.220.0090.02811.46
5.3.210.0100.02311.60
5.3.200.0090.03011.55
5.3.190.0110.02911.55
5.3.180.0140.03311.64
5.3.170.0120.03111.66
5.3.160.0090.02911.66
5.3.150.0110.02911.61
5.3.140.0120.01911.60
5.3.130.0110.02111.54
5.3.120.0110.02011.59
5.3.110.0120.02111.62
5.3.100.0070.02511.34
5.3.90.0070.02511.31
5.3.80.0130.02111.19
5.3.70.0100.02511.21
5.3.60.0100.02611.22
5.3.50.0090.02311.18
5.3.40.0100.02711.22
5.3.30.0110.01911.19
5.3.20.0110.02411.08
5.3.10.0050.02810.94
5.3.00.0060.02610.99
5.2.170.0070.0279.18
5.2.160.0030.0319.18
5.2.150.0050.0329.18
5.2.140.0030.0339.18
5.2.130.0060.0299.14
5.2.120.0060.0299.14
5.2.110.0080.0289.14
5.2.100.0070.0369.14
5.2.90.0070.0429.13
5.2.80.0080.0479.14
5.2.70.0090.0499.13
5.2.60.0060.0419.08
5.2.50.0060.0319.05
5.2.40.0060.0319.03
5.2.30.0060.0389.01
5.2.20.0060.0429.00
5.2.10.0100.0398.92
5.2.00.0100.0538.78
5.1.60.0080.0328.06
5.1.50.0080.0338.06
5.1.40.0050.0328.04
5.1.30.0070.0278.39
5.1.20.0040.0298.41
5.1.10.0070.0258.14
5.1.00.0040.0298.14
5.0.50.0050.0206.63
5.0.40.0050.0196.49
5.0.30.0040.0326.30
5.0.20.0080.0166.27
5.0.10.0030.0216.25
5.0.00.0020.0336.24
4.4.90.0030.0164.78
4.4.80.0050.0144.75
4.4.70.0010.0184.76
4.4.60.0030.0164.75
4.4.50.0020.0174.77
4.4.40.0010.0284.71
4.4.30.0050.0204.76
4.4.20.0030.0174.84
4.4.10.0070.0194.85
4.4.00.0060.0304.75
4.3.110.0020.0194.67
4.3.100.0050.0144.66
4.3.90.0050.0134.64
4.3.80.0030.0264.58
4.3.70.0050.0144.63
4.3.60.0050.0144.63
4.3.50.0050.0144.63
4.3.40.0020.0264.54
4.3.30.0010.0183.29
4.3.20.0020.0173.27
4.3.10.0020.0223.23
4.3.00.0070.0176.86

preferences:
37.66 ms | 400 KiB | 5 Q