3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarr = array("world cup"); foreach($myarr as &$v){ if(strpos($v,'o')!==false) $myarr[] = str_replace('o','O',$v); if(strpos($v,'O')!==false) $myarr[] = str_replace('O','o',$v); } die("happy"); 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.0370.04440.84
8.3.30.0330.05341.22
8.3.20.0220.02242.41
8.3.10.0160.01944.27
8.3.00.0160.03839.92
8.2.170.0300.05041.22
8.2.160.0430.05642.44
8.2.150.0300.04641.23
8.2.140.0240.02040.88
8.2.130.0100.04744.31
8.2.120.0100.03842.68
8.2.110.0130.04442.61
8.2.100.0170.05139.88
8.2.90.0200.04341.43
8.2.80.0100.04739.64
8.2.70.0160.05440.04
8.2.60.0170.04039.82
8.2.50.0190.03639.70
8.2.40.0100.04240.49
8.2.30.0140.03840.16
8.2.20.0130.04339.79
8.2.10.0140.04139.96
8.2.00.0100.04539.69
8.1.270.0130.03748.51
8.1.260.0200.05744.75
8.1.250.0270.05748.18
8.1.240.0230.03648.46
8.1.230.0290.04847.30
8.1.220.0180.04243.84
8.1.210.0100.05044.93
8.1.200.0070.05343.46
8.1.190.0190.04143.37
8.1.180.0200.04043.28
8.1.170.0140.04544.46
8.1.160.0140.04447.91
8.1.150.0130.04544.63
8.1.140.0160.04243.37
8.1.130.0100.04843.73
8.1.120.0130.04543.50
8.1.110.0130.04643.48
8.1.100.0170.04443.33
8.1.90.0140.04443.37
8.1.80.0210.03843.45
8.1.70.0130.04343.43
8.1.60.0170.04643.56
8.1.50.0170.04343.39
8.1.40.0100.05043.54
8.1.30.0100.06443.62
8.1.20.0230.03643.60
8.1.10.0330.09569.61
8.1.00.0300.08469.45
8.0.300.0300.08071.81
8.0.290.0300.09068.79
8.0.280.0270.08470.50
8.0.270.0260.09268.88
8.0.260.0230.09069.22
8.0.250.0170.09268.91
8.0.240.0200.09269.00
8.0.230.0340.07868.91
8.0.220.0300.07968.76
8.0.210.0300.09368.91
8.0.200.0230.08868.98
8.0.190.0330.08068.99
8.0.180.0520.09768.92
8.0.170.0260.08668.96
8.0.160.0200.09569.01
8.0.150.0240.09468.89
8.0.140.0140.09968.89
8.0.130.0400.185117.56
8.0.120.0270.09068.89
8.0.110.0200.09468.87
8.0.100.0230.09268.74
8.0.90.0330.08068.80
8.0.80.0930.17268.97
8.0.70.0130.09768.89
8.0.60.0200.09168.95
8.0.50.0290.08268.75
8.0.30.0700.14969.14
8.0.20.0590.15669.05
8.0.10.0240.09169.06
8.0.00.0760.15368.78
7.4.330.0230.08465.85
7.4.320.0260.08268.39
7.4.300.0340.08268.58
7.4.290.0340.08168.42
7.4.280.0160.09868.54
7.4.270.0260.08868.50
7.4.260.0400.10468.55
7.4.250.0230.09668.51
7.4.240.0220.09068.52
7.4.230.0230.08668.67
7.4.220.0560.18468.62
7.4.210.0630.15168.54
7.4.200.0200.10768.70
7.4.190.0330.07668.46
7.4.160.0680.13668.61
7.4.150.0840.13568.53
7.4.140.0710.16868.59
7.4.130.0670.16468.51
7.4.120.0640.16168.46
7.4.110.0720.17368.29
7.4.100.0980.13768.59
7.4.90.0570.16268.55
7.4.80.0730.22968.55
7.4.70.0650.15868.50
7.4.60.0830.14268.64
7.4.50.0170.06968.33
7.4.40.0490.16568.33
7.4.30.0650.14868.40
7.4.00.0430.19367.09
7.3.330.0530.196109.30
7.3.320.0370.187109.25
7.3.310.0290.08264.21
7.3.300.0230.08964.20
7.3.290.0730.12964.18
7.3.280.0820.18164.26
7.3.270.0690.13564.49
7.3.260.0880.13164.17
7.3.250.0730.19464.36
7.3.240.0540.16264.57
7.3.230.0730.17764.29
7.3.210.0770.13364.17
7.3.200.0500.17964.41
7.3.190.0830.14864.46
7.3.180.0880.11564.46
7.3.170.0870.17264.43
7.3.160.0770.17764.26
7.3.120.0270.18162.70
7.2.330.0710.14364.78
7.2.320.1000.22764.52
7.2.310.0560.16864.49
7.2.300.0520.17364.55
7.2.290.0690.19564.79
7.2.110.5090.11364.54
7.2.80.1760.09864.57
7.2.60.2900.08864.22
7.2.00.0070.09767.09
7.1.200.2080.08363.63
7.1.100.0520.02425.39
7.1.70.0000.11364.91
7.1.60.0070.14465.50
7.1.50.0430.15564.79
7.1.00.0070.20770.31
7.0.200.0400.09464.82
7.0.140.0130.20769.95
7.0.60.0200.12768.07
7.0.50.0230.18365.88
7.0.40.0300.17335.82
7.0.30.0770.14035.85
7.0.20.0770.13035.80
7.0.10.0100.18735.84
7.0.00.0200.20035.93
5.6.280.0070.07021.12
5.6.210.0130.04320.47
5.6.200.0000.09018.12
5.6.190.0070.04320.63
5.6.180.2930.04320.79
5.6.170.0130.04720.50
5.6.160.0030.09020.41
5.6.150.0030.03718.12
5.6.140.0030.04318.10
5.6.130.0030.04318.20
5.6.120.0070.08021.12
5.6.110.0100.07321.14
5.6.100.0030.05020.98
5.6.90.0030.04020.99
5.6.80.0030.04020.25
5.6.70.0500.03720.38
5.5.350.0230.08320.39
5.5.340.0170.06717.98
5.5.330.0000.04320.46
5.5.320.0330.06020.13
5.5.310.0330.03020.26
5.5.300.0130.07318.01
5.5.290.0100.07717.95
5.5.280.0170.07320.86
5.5.270.0030.04720.84
5.5.260.0100.08320.86
5.5.250.0100.08320.70
5.5.240.0130.04720.03
5.4.450.0770.05319.33
5.4.440.0270.05719.24
5.4.430.0800.07719.47
5.4.420.0830.06019.16
5.4.410.0070.05719.37
5.4.400.0800.05019.04
5.4.390.0700.05719.00
5.4.380.0170.05018.59
5.4.370.0130.05318.68
5.4.360.0100.07718.63
5.4.350.0070.06018.70
5.4.340.0100.05318.72
5.4.320.0060.04212.46
5.4.310.0070.03812.45
5.4.300.0110.03512.46
5.4.290.0090.06412.45
5.4.280.0150.04612.35
5.4.270.0080.03612.35
5.4.260.0060.04112.35
5.4.250.0060.03812.35
5.4.240.0070.05012.35
5.4.230.0080.05512.34
5.4.220.0100.05212.34
5.4.210.0090.05312.34
5.4.200.0030.04212.34
5.4.190.0060.03712.34
5.4.180.0060.03912.34
5.4.170.0060.03912.35
5.4.160.0110.03812.35
5.4.150.0070.03812.34
5.4.140.0090.04812.02
5.4.130.0080.05012.02
5.4.120.0070.06511.97
5.4.110.0110.06411.97
5.4.100.0120.04711.97
5.4.90.0080.06811.96
5.4.80.0130.05911.97
5.4.70.0100.04811.96
5.4.60.0060.03911.97
5.4.50.0110.06811.96
5.4.40.0080.04411.95
5.4.30.0170.06111.95
5.4.20.0070.04311.95
5.4.10.0060.03711.95
5.4.00.0070.03711.45
5.3.290.0100.03812.80
5.3.280.0070.03912.71
5.3.270.0070.03912.73
5.3.260.0090.05212.72
5.3.250.0110.04912.72
5.3.240.0160.06812.72
5.3.230.0070.06112.71
5.3.220.0070.05812.68
5.3.210.0040.06612.68
5.3.200.0080.05612.68
5.3.190.0100.05112.68
5.3.180.0090.05512.68
5.3.170.0070.04912.67
5.3.160.0070.03712.68
5.3.150.0080.04012.68
5.3.140.0060.05512.66
5.3.130.0140.05812.66
5.3.120.0110.05912.66
5.3.110.0090.04312.66
5.3.100.0150.05512.12
5.3.90.0140.07212.08
5.3.80.0120.04912.07
5.3.70.0050.03912.07
5.3.60.0190.03812.06
5.3.50.0100.04912.00
5.3.40.0140.06112.00
5.3.30.0210.06711.95
5.3.20.0130.04411.73
5.3.10.0100.05711.70
5.3.00.0060.04311.68
5.2.170.0040.0319.18
5.2.160.0060.0299.18
5.2.150.0080.0599.18
5.2.140.0270.0989.18
5.2.130.0070.0309.14
5.2.120.0090.0269.14
5.2.110.0050.0319.14
5.2.100.0110.0369.14
5.2.90.0090.0389.15
5.2.80.0130.0579.14
5.2.70.0100.0699.14
5.2.60.0190.0449.09
5.2.50.0140.0399.06
5.2.40.0070.0309.04
5.2.30.0040.0439.01
5.2.20.0100.0569.00
5.2.10.0110.0428.93
5.2.00.0080.0458.78
5.1.60.0110.0378.07
5.1.50.0040.0398.06
5.1.40.0060.0378.04
5.1.30.0090.0288.40
5.1.20.0070.0378.42
5.1.10.0060.0358.14
5.1.00.0040.0278.14
5.0.50.0040.0216.62
5.0.40.0050.0216.48
5.0.30.0030.0336.29
5.0.20.0070.0246.27
5.0.10.0030.0326.24
5.0.00.0050.0366.23
4.4.90.0050.0234.78
4.4.80.0050.0204.75
4.4.70.0080.0234.75
4.4.60.0050.0174.75
4.4.50.0050.0164.77
4.4.40.0050.0444.71
4.4.30.0060.0244.75
4.4.20.0100.0214.84
4.4.10.0100.0214.85
4.4.00.0020.0604.76
4.3.110.0050.0274.67
4.3.100.0160.0314.67
4.3.90.0050.0174.63
4.3.80.0050.0544.58
4.3.70.0040.0194.63
4.3.60.0240.0334.63
4.3.50.0010.0184.63
4.3.40.0060.0294.54
4.3.30.0040.0203.29
4.3.20.0040.0253.26
4.3.10.0050.0213.22
4.3.00.0100.0206.85

preferences:
41.79 ms | 400 KiB | 5 Q