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); } 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.0070.00716.88
8.3.50.0130.00621.93
8.3.40.0060.00918.85
8.3.30.0090.00619.15
8.3.20.0150.00320.34
8.3.10.0060.00323.51
8.3.00.0120.00319.25
8.2.180.0060.01618.29
8.2.170.0120.00322.96
8.2.160.0140.00020.52
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0080.00022.14
8.2.110.0030.00622.33
8.2.100.0090.00317.84
8.2.90.0080.00019.41
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0060.00320.07
8.2.30.0000.00818.25
8.2.20.0030.00517.85
8.2.10.0070.00018.12
8.2.00.0040.00417.80
8.1.280.0120.00925.92
8.1.270.0060.00324.02
8.1.260.0040.01526.35
8.1.250.0100.01028.09
8.1.240.0030.00623.99
8.1.230.0110.00019.07
8.1.220.0080.00017.79
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0040.00418.44
8.1.160.0000.00821.97
8.1.150.0040.00418.62
8.1.140.0040.00417.41
8.1.130.0070.00017.82
8.1.120.0000.00717.44
8.1.110.0050.00317.46
8.1.100.0020.00517.35
8.1.90.0040.00417.36
8.1.80.0080.00017.45
8.1.70.0030.00317.33
8.1.60.0050.00517.48
8.1.50.0000.00817.51
8.1.40.0040.00417.52
8.1.30.0000.01017.55
8.1.20.0050.00317.65
8.1.10.0060.00317.46
8.1.00.0060.00317.31
8.0.300.0060.00318.77
8.0.290.0040.00417.05
8.0.280.0040.00418.44
8.0.270.0000.00817.29
8.0.260.0030.00317.27
8.0.250.0000.00716.99
8.0.240.0000.00716.84
8.0.230.0030.00316.89
8.0.220.0040.00416.87
8.0.210.0090.00016.80
8.0.200.0070.00016.93
8.0.190.0070.00016.89
8.0.180.0000.01016.82
8.0.170.0000.00716.79
8.0.160.0040.00416.79
8.0.150.0070.00016.75
8.0.140.0000.00716.84
8.0.130.0030.00313.33
8.0.120.0030.00516.88
8.0.110.0000.00716.90
8.0.100.0000.00816.92
8.0.90.0040.00416.92
8.0.80.0090.01216.94
8.0.70.0000.00816.91
8.0.60.0080.00016.90
8.0.50.0000.00816.86
8.0.30.0090.00917.09
8.0.20.0070.01117.40
8.0.10.0060.00317.04
8.0.00.0080.01016.61
7.4.330.0030.00315.14
7.4.320.0000.00616.61
7.4.300.0070.00016.60
7.4.290.0040.00416.52
7.4.280.0000.00816.55
7.4.270.0040.00416.52
7.4.260.0000.00716.48
7.4.250.0000.00716.51
7.4.240.0050.00216.52
7.4.230.0000.00716.57
7.4.220.0030.01416.67
7.4.210.0060.00816.54
7.4.200.0020.00516.34
7.4.190.0000.00716.71
7.4.160.0030.01316.25
7.4.150.0160.00617.40
7.4.140.0070.01017.86
7.4.130.0070.01216.53
7.4.120.0070.01016.40
7.4.110.0080.00816.48
7.4.100.0030.01516.64
7.4.90.0070.01016.57
7.4.80.0150.00319.39
7.4.70.0100.00616.30
7.4.60.0100.00716.44
7.4.50.0050.00016.64
7.4.40.0100.00616.37
7.4.30.0100.00716.57
7.4.00.0070.00814.86
7.3.330.0000.00713.10
7.3.320.0060.00013.13
7.3.310.0050.00216.30
7.3.300.0000.00716.30
7.3.290.0040.01116.22
7.3.280.0100.00816.28
7.3.270.0130.01017.40
7.3.260.0140.00316.23
7.3.250.0110.00916.40
7.3.240.0190.00416.54
7.3.230.0130.00316.39
7.3.210.0150.00316.49
7.3.200.0090.01519.39
7.3.190.0100.00716.24
7.3.180.0060.00916.46
7.3.170.0060.01216.46
7.3.160.0070.01016.52
7.3.120.0090.00714.82
7.3.110.0070.00715.00
7.3.100.0060.00614.74
7.3.90.0100.00314.63
7.3.80.0060.00414.93
7.3.70.0070.00714.71
7.3.60.0060.00814.89
7.3.50.0070.00614.89
7.3.40.0030.00814.82
7.3.30.0090.00514.72
7.3.20.0060.00816.69
7.3.10.0100.00616.71
7.3.00.0050.00816.60
7.2.330.0030.01316.50
7.2.320.0130.00916.29
7.2.310.0110.01116.77
7.2.300.0100.00716.45
7.2.290.0090.01316.79
7.2.250.0090.01115.02
7.2.240.0090.01014.98
7.2.230.0100.00414.94
7.2.220.0100.00315.13
7.2.210.0040.01015.12
7.2.200.0100.00614.87
7.2.190.0070.00415.10
7.2.180.0000.01114.95
7.2.170.0080.00815.01
7.2.130.0130.00016.70
7.2.120.0030.01016.70
7.2.110.0040.00816.95
7.2.100.0080.00816.74
7.2.90.0100.00616.68
7.2.80.0070.00716.89
7.2.70.0040.00816.63
7.2.60.0040.01216.96
7.2.50.0100.00316.75
7.2.40.0050.00516.85
7.2.30.0040.01216.80
7.2.20.0030.00916.84
7.2.10.0030.00716.71
7.2.00.0110.00718.11
7.1.330.0060.00815.64
7.1.320.0080.00615.72
7.1.310.0070.00715.66
7.1.300.0050.00815.75
7.1.290.0070.00715.86
7.1.280.0080.00815.63
7.1.270.0060.01015.61
7.1.260.0110.00715.73
7.1.250.0060.00615.63
7.1.200.0040.01116.02
7.1.100.0060.00318.24
7.1.70.0000.00917.14
7.1.60.0100.01319.46
7.1.50.0160.01316.83
7.1.00.0070.07322.27
7.0.200.0080.00216.71
7.0.140.0130.06022.12
7.0.60.0070.06319.92
7.0.50.0030.04317.92
7.0.40.0030.08019.95
7.0.30.0170.04320.09
7.0.20.0300.08020.16
7.0.10.0130.08320.17
7.0.00.0100.04320.20
5.6.280.0100.08721.14
5.6.210.0030.08320.61
5.6.200.0030.05318.12
5.6.190.0070.04320.41
5.6.180.0400.07020.49
5.6.170.0300.03320.48
5.6.160.0200.07020.40
5.6.150.0030.08318.10
5.6.140.0070.07718.15
5.6.130.0030.07718.11
5.6.120.0100.08020.98
5.6.110.0030.06720.98
5.6.100.0070.08721.13
5.6.90.0100.07020.96
5.6.80.0100.05720.41
5.5.350.3270.04320.30
5.5.340.0070.06017.89
5.5.330.0130.05320.38
5.5.320.0230.07720.13
5.5.310.0400.05020.20
5.5.300.0070.05317.98
5.5.290.0030.04017.96
5.5.280.0030.09020.82
5.5.270.0070.04020.75
5.5.260.0030.08320.79
5.5.250.0170.06720.70
5.5.240.0070.07320.04
5.4.450.0770.05319.56
5.4.440.0770.06319.32
5.4.430.0300.05719.32
5.4.420.0630.05719.05
5.4.410.0630.06319.20
5.4.400.0630.05319.08
5.4.390.0830.05019.08
5.4.380.0270.06318.73
5.4.370.0170.05018.63
5.4.360.0270.03718.72
5.4.350.0200.05018.58
5.4.340.0070.06018.70
5.4.320.0040.03812.45
5.4.310.0080.05112.45
5.4.300.0090.03612.46
5.4.290.0200.07412.45
5.4.280.0120.04612.35
5.4.270.0090.05712.35
5.4.260.0160.06612.35
5.4.250.0130.06412.35
5.4.240.0110.05912.35
5.4.230.0150.07212.34
5.4.220.0090.04512.34
5.4.210.0080.05512.34
5.4.200.0150.06812.34
5.4.190.0120.04612.34
5.4.180.0150.07612.34
5.4.170.0050.04312.35
5.4.160.0100.03612.34
5.4.150.0110.04612.34
5.4.140.0160.07012.02
5.4.130.0460.14212.02
5.4.120.0070.05311.97
5.4.110.0230.06511.96
5.4.100.0120.04411.96
5.4.90.0090.05711.97
5.4.80.0130.11211.97
5.4.70.0140.06811.96
5.4.60.0100.05111.96
5.4.50.0060.05311.96
5.4.40.0130.05311.95
5.4.30.0040.04411.95
5.4.20.0120.03611.95
5.4.10.0190.07711.95
5.4.00.0120.07811.44
5.3.290.0030.04412.80
5.3.280.0190.05812.71
5.3.270.0100.04712.73
5.3.260.0110.05512.71
5.3.250.0070.04112.71
5.3.240.0110.04912.71
5.3.230.0110.06112.71
5.3.220.0120.06112.68
5.3.210.0120.04912.68
5.3.200.0520.07912.68
5.3.190.0260.05212.68
5.3.180.0280.06112.67
5.3.170.0100.04912.67
5.3.160.0100.05412.68
5.3.150.0060.05712.67
5.3.140.0120.04512.66
5.3.130.0250.07612.66
5.3.120.0130.06412.65
5.3.110.0220.07112.66
5.3.100.0090.05412.12
5.3.90.0190.08212.08
5.3.80.0100.06112.07
5.3.70.0280.08212.08
5.3.60.0110.06112.07
5.3.50.0160.05512.00
5.3.40.0350.07612.00
5.3.30.0170.05411.95
5.3.20.0340.05211.72
5.3.10.0090.05911.69
5.3.00.0150.04711.68
5.2.170.0110.0709.18
5.2.160.0180.0549.18
5.2.150.0060.0559.18
5.2.140.0140.0529.18
5.2.130.0050.0429.13
5.2.120.0170.0979.13
5.2.110.0140.0849.14
5.2.100.0080.0319.14
5.2.90.0070.0349.14
5.2.80.0050.0369.13
5.2.70.0110.0489.14
5.2.60.0120.0429.09
5.2.50.0200.0809.06
5.2.40.0190.0589.03
5.2.30.0170.0559.01
5.2.20.0040.0339.00
5.2.10.0050.0338.92
5.2.00.0110.0388.77
5.1.60.0120.0528.06
5.1.50.0110.0418.06
5.1.40.0100.0478.04
5.1.30.0070.0358.39
5.1.20.0330.0568.41
5.1.10.0200.0548.13
5.1.00.0080.0328.14
5.0.50.0060.0376.61
5.0.40.0040.0416.48
5.0.30.0490.0636.29
5.0.20.0110.0396.26
5.0.10.0070.0316.23
5.0.00.0050.0586.23
4.4.90.0040.0394.78
4.4.80.0060.0434.75
4.4.70.0100.0364.76
4.4.60.0040.0224.76
4.4.50.0080.0244.77
4.4.40.0040.0374.70
4.4.30.0050.0244.76
4.4.20.0040.0304.84
4.4.10.0050.0234.85
4.4.00.0060.0424.76
4.3.110.0040.0244.67
4.3.100.0080.0264.67
4.3.90.0040.0164.63
4.3.80.0250.0244.59
4.3.70.0040.0174.63
4.3.60.0020.0244.63
4.3.50.0030.0184.63
4.3.40.0070.0434.54
4.3.30.0110.0163.29
4.3.20.0040.0263.27
4.3.10.0040.0233.21
4.3.00.0100.0236.85

preferences:
46.97 ms | 401 KiB | 5 Q