3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_position($string) { $first_letter = strtolower(substr($string,0,1)); if( strstr("aeiou",$vowels) ) { $string = "an <strong>".ucfirst($string)."</strong>"; } else { $string = "a <strong>".ucfirst($string)."</strong>"; } return $string; } $output1 = get_position("Advertising"); $output2 = get_position("Marketing"); echo $output1."<br>"; echo $output2."<br>";

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.0140.00318.56
8.3.50.0070.00822.04
8.3.40.0070.00718.61
8.3.30.0070.01018.96
8.3.20.0040.00420.21
8.3.10.0040.00423.54
8.3.00.0040.00419.05
8.2.180.0070.01416.50
8.2.170.0120.00622.96
8.2.160.0130.00318.81
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0120.00326.16
8.2.120.0040.00419.38
8.2.110.0060.00322.07
8.2.100.0070.00420.35
8.2.90.0030.00619.05
8.2.80.0090.00017.97
8.2.70.0030.00717.63
8.2.60.0080.00018.05
8.2.50.0060.00318.07
8.2.40.0040.00419.88
8.2.30.0040.00418.29
8.2.20.0000.00817.74
8.2.10.0070.00018.05
8.2.00.0040.00417.64
8.1.280.0140.00725.92
8.1.270.0080.00023.83
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.14
8.1.230.0090.00319.16
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0000.00817.00
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0030.00618.59
8.1.160.0070.00021.89
8.1.150.0040.00418.61
8.1.140.0040.00417.38
8.1.130.0030.00319.57
8.1.120.0040.00417.53
8.1.110.0000.00717.46
8.1.100.0000.00817.42
8.1.90.0030.00517.35
8.1.80.0000.00717.34
8.1.70.0000.00717.35
8.1.60.0030.00517.51
8.1.50.0000.00917.55
8.1.40.0040.00717.52
8.1.30.0080.00017.53
8.1.20.0030.00517.66
8.1.10.0020.00517.41
8.1.00.0020.00517.33
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00317.15
8.0.260.0050.00317.16
8.0.250.0000.00716.90
8.0.240.0000.00817.03
8.0.230.0030.00316.92
8.0.220.0030.00316.99
8.0.210.0000.00616.98
8.0.200.0030.00316.97
8.0.190.0040.00417.00
8.0.180.0000.00717.02
8.0.170.0040.00416.94
8.0.160.0020.00516.82
8.0.150.0040.00416.90
8.0.140.0040.00416.84
8.0.130.0030.00313.34
8.0.120.0000.00716.92
8.0.110.0000.00716.93
8.0.100.0040.00416.95
8.0.90.0000.00816.81
8.0.80.0070.01016.95
8.0.70.0000.00716.99
8.0.60.0020.00516.92
8.0.50.0050.00216.99
8.0.30.0080.01017.17
8.0.20.0130.00617.40
8.0.10.0000.00817.12
8.0.00.0090.00916.70
7.4.330.0050.00015.03
7.4.320.0000.00616.43
7.4.300.0030.00316.52
7.4.290.0070.00016.56
7.4.280.0030.00316.57
7.4.270.0030.00316.41
7.4.260.0030.00316.54
7.4.250.0080.00016.46
7.4.240.0000.00716.43
7.4.230.0040.00416.61
7.4.220.0070.01016.55
7.4.210.0090.00616.53
7.4.200.0030.00316.38
7.4.160.0110.00516.30
7.4.150.0090.00917.40
7.4.140.0160.00517.86
7.4.130.0070.00916.56
7.4.120.0080.01116.52
7.4.110.0130.00616.46
7.4.100.0180.00016.56
7.4.90.0090.00916.43
7.4.80.0100.00719.39
7.4.70.0120.00916.57
7.4.60.0090.00816.65
7.4.50.0000.00716.48
7.4.40.0140.00316.64
7.4.30.0060.01816.50
7.4.00.0100.00714.93
7.3.330.0000.00513.36
7.3.320.0020.00213.18
7.3.310.0030.00316.24
7.3.300.0000.00716.36
7.3.290.0100.00316.40
7.3.280.0060.01116.37
7.3.270.0130.00317.40
7.3.260.0130.00916.40
7.3.250.0100.01316.40
7.3.240.0110.01116.43
7.3.230.0030.01616.43
7.3.210.0120.00616.36
7.3.200.0090.00619.39
7.3.190.0120.00916.55
7.3.180.0130.00316.48
7.3.170.0170.00316.44
7.3.160.0140.00316.34
7.3.120.0110.00714.74
7.3.10.0060.00916.72
7.3.00.0100.00416.63
7.2.330.0060.01216.66
7.2.320.0060.01316.70
7.2.310.0080.00816.74
7.2.300.0100.00716.64
7.2.290.0130.00416.71
7.2.130.0060.00816.79
7.2.120.0030.00816.90
7.2.110.0110.00316.99
7.2.100.0050.00816.87
7.2.90.0070.00516.77
7.2.80.0070.00516.96
7.2.70.0060.00816.77
7.2.60.0040.00716.97
7.2.50.0030.00816.68
7.2.40.0080.00417.00
7.2.30.0070.00717.00
7.2.20.0050.01016.86
7.2.10.0060.00616.88
7.2.00.0040.00717.63
7.1.250.0070.00715.79
7.1.240.0040.01015.80
7.1.230.0050.00615.79
7.1.220.0030.00815.77
7.1.210.0020.00715.70
7.1.200.0070.00415.80
7.1.190.0050.00515.58
7.1.180.0070.00415.63
7.1.170.0080.00315.70
7.1.160.0050.00515.54
7.1.150.0060.00715.72
7.1.140.0070.00715.57
7.1.130.0040.00515.66
7.1.120.0060.00815.88
7.1.110.0050.00915.73
7.1.100.0070.00616.46
7.1.90.0060.00715.58
7.1.80.0090.00415.70
7.1.70.0060.00616.22
7.1.60.0030.01217.09
7.1.50.0070.00716.09
7.1.40.0050.00715.66
7.1.30.0060.00615.70
7.1.20.0050.00915.66
7.1.10.0030.00715.71
7.1.00.0100.02117.84
7.0.330.0060.00515.20
7.0.320.0050.00515.25
7.0.310.0050.00915.35
7.0.300.0050.00715.26
7.0.290.0040.00415.35
7.0.280.0060.00715.34
7.0.270.0040.00715.08
7.0.260.0060.00315.49
7.0.250.0050.00615.40
7.0.240.0070.00415.40
7.0.230.0040.00815.35
7.0.220.0050.00715.39
7.0.210.0050.00515.26
7.0.200.0080.00315.71
7.0.190.0080.00315.17
7.0.180.0030.00715.57
7.0.170.0040.00615.34
7.0.160.0080.00615.24
7.0.150.0090.00515.26
7.0.140.0020.03117.49
7.0.130.0040.00615.51
7.0.120.0050.00515.19
7.0.110.0020.01015.28
7.0.100.0090.00415.21
7.0.90.0100.00215.33
7.0.80.0050.00915.36
7.0.70.0030.01015.26
7.0.60.0060.02616.93
7.0.50.0040.03416.33
7.0.40.0040.02115.64
7.0.30.0130.03215.65
7.0.20.0100.02215.73
7.0.10.0040.02015.67
7.0.00.0050.03215.62
5.6.380.0090.00214.16
5.6.370.0060.00614.56
5.6.360.0050.00814.35
5.6.350.0050.00714.36
5.6.340.0060.00514.35
5.6.330.0030.00614.30
5.6.320.0060.00614.25
5.6.310.0020.00814.25
5.6.300.0040.00614.37
5.6.290.0090.00614.20
5.6.280.0090.02616.65
5.6.270.0070.00714.46
5.6.260.0020.01114.03
5.6.250.0090.00214.35
5.6.240.0080.00514.42
5.6.230.0040.00914.34
5.6.220.0060.00714.25
5.6.210.0070.03016.27
5.6.200.0080.02215.60
5.6.190.0090.01616.39
5.6.180.0120.02616.26
5.6.170.0100.03616.33
5.6.160.0090.02816.29
5.6.150.0080.01915.43
5.6.140.0000.02415.49
5.6.130.0030.02915.63
5.6.120.0090.02016.57
5.6.110.0070.03216.57
5.6.100.0060.03116.58
5.6.90.0080.03216.60
5.6.80.0030.03216.30
5.6.70.1580.01316.26
5.6.60.0070.00514.19
5.6.50.0080.00314.26
5.6.40.0070.00514.21
5.6.30.0010.01014.28
5.6.20.0060.00614.30
5.6.10.0050.01014.39
5.6.00.0070.00514.16
5.5.380.0050.00311.11
5.5.370.0040.00511.13
5.5.360.0030.00911.24
5.5.350.0040.02714.24
5.5.340.0090.02713.51
5.5.330.0060.01914.31
5.5.320.0100.03414.21
5.5.310.0120.02414.35
5.5.300.0040.03113.44
5.5.290.0040.02113.39
5.5.280.0080.02314.42
5.5.270.0030.01914.51
5.5.260.0020.03314.42
5.5.250.0020.02614.32
5.5.240.0080.01814.11
5.5.230.0010.00811.04
5.5.220.0040.00311.07
5.5.210.0050.00611.04
5.5.200.0060.00211.06
5.5.190.0030.00711.21
5.5.180.0110.00211.18
5.5.170.0070.00511.10
5.5.160.0050.00611.15
5.5.150.0040.00511.05
5.5.140.0020.00911.21
5.5.130.0020.00911.19
5.5.120.0070.00311.14
5.5.110.0020.00911.21
5.5.100.0000.00811.07
5.5.90.0050.00211.17
5.5.80.0060.00511.12
5.5.70.0090.00311.14
5.5.60.0070.00211.04
5.5.50.0060.00611.17
5.5.40.0060.00611.04
5.5.30.0060.00511.04
5.5.20.0050.00211.09
5.5.10.0010.00711.04
5.5.00.0060.00311.06
5.4.450.0120.01619.08
5.4.440.0140.01618.22
5.4.430.0040.01518.13
5.4.420.0130.01718.13
5.4.410.0150.01718.21
5.4.400.0120.01518.09
5.4.390.0140.01918.11
5.4.380.0170.02713.66
5.4.370.0180.02113.73
5.4.360.0140.02313.61
5.4.350.0100.02313.59
5.4.340.0130.02313.59
5.4.330.0050.00411.04
5.4.320.0080.01511.62
5.4.310.0040.02011.59
5.4.300.0070.01311.54
5.4.290.0060.01711.60
5.4.280.0040.01711.54
5.4.270.0040.01611.58
5.4.260.0050.01711.49
5.4.250.0030.02111.49
5.4.240.0040.01811.51
5.4.230.0070.01611.49
5.4.220.0060.01811.56
5.4.210.0070.01311.55
5.4.200.0060.01711.50
5.4.190.0040.01711.49
5.4.180.0040.01811.50
5.4.170.0070.01711.49
5.4.160.0050.01911.49
5.4.150.0050.01711.49
5.4.140.0060.01811.41
5.4.130.0050.01811.40
5.4.120.0040.01611.36
5.4.110.0030.01811.43
5.4.100.0070.01811.48
5.4.90.0060.01611.45
5.4.80.0090.01511.39
5.4.70.0060.02111.36
5.4.60.0040.01911.37
5.4.50.0030.01811.40
5.4.40.0060.01811.36
5.4.30.0080.01211.38
5.4.20.0030.01611.42
5.4.10.0060.01511.37
5.4.00.0040.01811.20
5.3.290.0050.01711.63
5.3.280.0030.01811.59
5.3.270.0100.01311.60
5.3.260.0040.01811.60
5.3.250.0090.01311.60
5.3.240.0030.01711.60
5.3.230.0030.01811.59
5.3.220.0040.01611.58
5.3.210.0070.01411.58
5.3.200.0040.01711.58
5.3.190.0060.01911.58
5.3.180.0040.01911.58
5.3.170.0060.01511.58
5.3.160.0080.01611.58
5.3.150.0070.02011.58
5.3.140.0080.01911.58
5.3.130.0070.02211.58
5.3.120.0030.02211.58
5.3.110.0070.01711.58
5.3.100.0050.01811.40
5.3.90.0040.01711.39
5.3.80.0060.01211.39
5.3.70.0040.01711.39
5.3.60.0040.01911.38
5.3.50.0020.01911.37
5.3.40.0040.01511.37
5.3.30.0060.01511.36
5.3.20.0060.01911.28
5.3.10.0030.02111.27
5.3.00.0060.01811.26
5.2.170.0040.01410.43
5.2.160.0060.01310.43
5.2.150.0050.01310.43
5.2.140.0040.01210.43
5.2.130.0050.01610.42
5.2.120.0050.01410.42
5.2.110.0050.01510.42
5.2.100.0050.01510.42
5.2.90.0040.01710.42
5.2.80.0060.01410.41
5.2.70.0050.01510.42
5.2.60.0060.01210.40
5.2.50.0040.01310.39
5.2.40.0030.01410.38
5.2.30.0040.01310.37
5.2.20.0030.01410.37
5.2.10.0020.01610.34
5.2.00.0030.01410.29
5.1.60.0030.01310.05
5.1.50.0040.01410.05
5.1.40.0010.01810.04
5.1.30.0050.02010.16
5.1.20.0050.02710.17
5.1.10.0040.01510.08
5.1.00.0060.01210.08
5.0.50.0040.0119.57
5.0.40.0030.0109.52
5.0.30.0040.0179.46
5.0.20.0040.0109.45
5.0.10.0040.0119.44
5.0.00.0030.0189.44
4.4.90.0040.0098.95
4.4.80.0020.0098.94
4.4.70.0040.0118.94
4.4.60.0030.0088.94
4.4.50.0020.0108.95
4.4.40.0020.0148.93
4.4.30.0010.0118.95
4.4.20.0010.0128.97
4.4.10.0040.0078.97
4.4.00.0010.0128.94
4.3.110.0020.0148.92
4.3.100.0030.0098.91
4.3.90.0040.0108.90
4.3.80.0020.0138.88
4.3.70.0020.0118.90
4.3.60.0010.0118.90
4.3.50.0040.0108.90
4.3.40.0010.0168.87
4.3.30.0040.0118.46
4.3.20.0020.0108.45
4.3.10.0040.0108.44
4.3.00.0030.00917.92

preferences:
45.91 ms | 401 KiB | 5 Q