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($arrr 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.60.0170.00316.88
8.3.50.0140.00521.23
8.3.40.0090.00618.95
8.3.30.0120.00418.96
8.3.20.0030.00920.39
8.3.10.0060.00323.61
8.3.00.0050.00319.26
8.2.180.0160.00316.88
8.2.170.0070.00722.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.01026.16
8.2.120.0070.00419.66
8.2.110.0030.00622.11
8.2.100.0110.00017.84
8.2.90.0060.00319.21
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0040.00419.76
8.2.30.0050.00218.16
8.2.20.0000.00817.84
8.2.10.0000.00718.21
8.2.00.0040.00417.75
8.1.280.0070.01025.92
8.1.270.0000.00823.83
8.1.260.0030.00626.35
8.1.250.0100.00728.09
8.1.240.0040.00422.07
8.1.230.0080.00319.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.23
8.1.180.0040.00419.14
8.1.170.0090.00018.60
8.1.160.0000.00721.96
8.1.150.0070.00018.57
8.1.140.0040.00417.46
8.1.130.0000.00717.77
8.1.120.0080.00017.49
8.1.110.0000.00917.38
8.1.100.0000.00717.40
8.1.90.0000.00717.42
8.1.80.0030.00517.45
8.1.70.0070.00017.38
8.1.60.0040.00417.44
8.1.50.0050.00317.39
8.1.40.0040.00417.59
8.1.30.0030.00717.57
8.1.20.0040.00417.71
8.1.10.0040.00417.45
8.1.00.0040.00417.38
8.0.300.0000.00818.77
8.0.290.0040.00417.16
8.0.280.0070.00018.39
8.0.270.0030.00417.21
8.0.260.0000.00717.28
8.0.250.0030.00316.96
8.0.240.0000.00817.04
8.0.230.0030.00516.91
8.0.220.0060.00016.92
8.0.210.0030.00616.90
8.0.200.0000.00617.07
8.0.190.0000.00717.04
8.0.180.0040.00417.02
8.0.170.0040.00416.99
8.0.160.0070.00016.98
8.0.150.0070.00016.82
8.0.140.0040.00416.93
8.0.130.0000.00513.39
8.0.120.0040.00416.98
8.0.110.0040.00417.02
8.0.100.0040.00416.85
8.0.90.0000.00716.87
8.0.80.0060.01217.02
8.0.70.0050.00316.96
8.0.60.0040.00416.90
8.0.50.0070.00016.99
8.0.30.0130.00717.10
8.0.20.0110.00817.40
8.0.10.0050.00316.93
8.0.00.0110.00916.71
7.4.330.0000.00515.02
7.4.320.0060.00016.41
7.4.300.0030.00316.52
7.4.290.0000.00716.61
7.4.280.0000.01116.50
7.4.270.0050.00316.43
7.4.260.0040.00416.39
7.4.250.0000.00816.55
7.4.240.0050.00216.58
7.4.230.0030.00316.52
7.4.220.0100.01616.70
7.4.210.0080.00916.61
7.4.200.0070.00016.31
7.4.190.0000.00716.55
7.4.160.0120.00416.45
7.4.150.0060.01417.40
7.4.140.0120.00617.86
7.4.130.0090.00716.66
7.4.120.0090.00816.52
7.4.110.0190.00616.31
7.4.100.0080.00816.59
7.4.90.0090.00816.50
7.4.80.0150.00919.39
7.4.70.0120.00416.30
7.4.60.0080.00816.29
7.4.50.0060.00316.51
7.4.40.0070.01016.48
7.4.30.0060.00916.68
7.4.00.0030.01215.13
7.3.330.0000.00713.01
7.3.320.0020.00213.19
7.3.310.0070.00016.21
7.3.300.0050.00316.36
7.3.290.0120.00316.25
7.3.280.0150.00516.24
7.3.270.0070.01717.40
7.3.260.0140.00416.41
7.3.250.0110.00616.25
7.3.240.0030.01716.38
7.3.230.0060.01216.56
7.3.210.0150.00916.37
7.3.200.0110.00819.39
7.3.190.0090.00916.59
7.3.180.0100.00716.31
7.3.170.0080.00916.39
7.3.160.0070.01116.58
7.3.120.0000.01114.71
7.2.330.0070.01116.42
7.2.320.0160.00916.55
7.2.310.0060.01616.47
7.2.300.0110.00816.73
7.2.290.0070.01016.69
7.2.60.0040.00817.00
7.2.00.0090.00919.46
7.1.200.0040.00415.61
7.1.100.0040.00918.35
7.1.70.0040.00416.87
7.1.60.0100.01419.46
7.1.50.0130.01016.58
7.1.00.0070.07022.57
7.0.200.0000.00916.71
7.0.140.0000.07322.05
7.0.60.0100.07319.95
7.0.50.0030.04717.80
7.0.40.0100.05020.27
7.0.30.0270.07320.17
7.0.20.0170.05020.00
7.0.10.0130.07720.21
7.0.00.0070.07320.18
5.6.280.0030.07320.89
5.6.210.0100.07720.72
5.6.200.0030.06718.19
5.6.190.0130.05020.63
5.6.180.0370.08020.61
5.6.170.0230.04720.52
5.6.160.0030.08720.50
5.6.150.0030.08318.08
5.6.140.0070.03718.11
5.6.130.0030.04018.18
5.6.120.0030.09020.95
5.6.110.0030.08720.95
5.6.100.0070.04021.13
5.6.90.0030.04020.95
5.6.80.0100.06320.50
5.5.350.0130.03720.41
5.5.340.0130.03317.98
5.5.330.0100.03720.25
5.5.320.0130.07320.51
5.5.310.0300.04720.24
5.5.300.0000.04317.97
5.5.290.0030.04317.98
5.5.280.0130.07720.89
5.5.270.0070.04320.63
5.5.260.0030.08020.71
5.5.250.0100.07720.69
5.5.240.0130.07320.10
5.4.450.0700.05019.45
5.4.440.1230.05019.11
5.4.430.1170.05319.40
5.4.420.0900.06019.48
5.4.410.0570.05319.14
5.4.400.1000.05319.20
5.4.390.1070.04719.12
5.4.380.0130.05718.74
5.4.370.0270.04318.50
5.4.360.0070.05718.52
5.4.350.0200.04718.59
5.4.340.0200.04318.53
5.4.320.0030.04512.45
5.4.310.0040.04012.45
5.4.300.0070.03612.45
5.4.290.0140.06112.45
5.4.280.0210.05912.35
5.4.270.0160.05712.35
5.4.260.0120.05412.35
5.4.250.0090.04912.35
5.4.240.0050.05712.35
5.4.230.0090.05612.34
5.4.220.0110.04712.34
5.4.210.0090.06312.34
5.4.200.0100.05012.34
5.4.190.0120.04112.34
5.4.180.0190.04812.34
5.4.170.0070.04112.35
5.4.160.0110.05412.35
5.4.150.0090.04212.34
5.4.140.0070.03812.03
5.4.130.0090.03912.02
5.4.120.0060.04011.97
5.4.110.0090.03511.96
5.4.100.0080.03811.96
5.4.90.0040.03911.97
5.4.80.0080.03511.96
5.4.70.0050.03711.96
5.4.60.0100.03211.96
5.4.50.0080.03611.96
5.4.40.0090.03911.95
5.4.30.0140.06011.95
5.4.20.0130.04411.95
5.4.10.0140.04911.95
5.4.00.0110.04111.44
5.3.290.0030.04312.80
5.3.280.0100.04312.71
5.3.270.0170.06312.72
5.3.260.0080.05912.72
5.3.250.0100.05312.72
5.3.240.0100.04912.72
5.3.230.0120.05512.71
5.3.220.0130.05612.68
5.3.210.0240.07812.68
5.3.200.0150.06112.68
5.3.190.0210.08012.68
5.3.180.0120.05812.67
5.3.170.0100.04212.67
5.3.160.0100.03412.68
5.3.150.0070.03812.67
5.3.140.0070.03812.66
5.3.130.0080.04112.66
5.3.120.0060.04112.66
5.3.110.0090.04512.66
5.3.100.0100.03712.12
5.3.90.0040.04012.09
5.3.80.0100.03612.07
5.3.70.0060.03912.08
5.3.60.0090.04912.06
5.3.50.0100.05112.00
5.3.40.0060.05712.00
5.3.30.0130.04811.94
5.3.20.0140.04711.73
5.3.10.0100.04711.69
5.3.00.0080.03811.68
5.2.170.0080.0359.18
5.2.160.0070.0299.18
5.2.150.0080.0309.18
5.2.140.0070.0409.18
5.2.130.0320.0459.14
5.2.120.0070.0459.14
5.2.110.0090.0439.14
5.2.100.0160.0499.14
5.2.90.0080.0299.14
5.2.80.0090.0489.14
5.2.70.0070.0469.14
5.2.60.0080.0299.09
5.2.50.0030.0339.06
5.2.40.0110.0379.04
5.2.30.0200.0459.01
5.2.20.0100.0389.00
5.2.10.0080.0338.92
5.2.00.0050.0328.78
5.1.60.0100.0268.06
5.1.50.0070.0238.06
5.1.40.0130.0218.04
5.1.30.0040.0358.39
5.1.20.0090.0248.41
5.1.10.0080.0298.14
5.1.00.0040.0398.14
5.0.50.0040.0296.63
5.0.40.0070.0286.49
5.0.30.0040.0446.30
5.0.20.0060.0286.27
5.0.10.0050.0296.25
5.0.00.0060.0646.24
4.4.90.0070.0154.78
4.4.80.0040.0224.76
4.4.70.0050.0154.75
4.4.60.0020.0174.76
4.4.50.0030.0164.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0244.84
4.4.10.0030.0174.85
4.4.00.0060.0574.76
4.3.110.0220.0734.67
4.3.100.0060.0184.67
4.3.90.0030.0184.64
4.3.80.0010.0294.59
4.3.70.0040.0144.63
4.3.60.0030.0154.63
4.3.50.0030.0284.63
4.3.40.0070.0334.54
4.3.30.0000.0283.29
4.3.20.0030.0223.27
4.3.10.0030.0193.22
4.3.00.0000.01316.16

preferences:
43.73 ms | 401 KiB | 5 Q