3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { echo "Got Irix"; } if (in_array("mac", $os, true)) { echo "Got mac"; } $a = array("uno" => "aaaa", "dos" => "BBBB"); $ext = pathinfo("http://www.unitel.tv/wp-content/themes/unitel/images/main_logo.png", PATHINFO_EXTENSION); echo $ext; echo " ".$a["uno"]; if (in_array("dos", $a, true)) { echo "<br>Si"; }

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.0120.00316.63
8.3.50.0100.00821.92
8.3.40.0130.00718.67
8.3.30.0110.00419.22
8.3.20.0080.00020.29
8.3.10.0070.00023.51
8.3.00.0000.00919.06
8.2.180.0130.00916.63
8.2.170.0160.00322.96
8.2.160.0100.00320.47
8.2.150.0000.00924.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0080.00020.47
8.2.100.0090.00317.91
8.2.90.0050.00319.34
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0030.00717.93
8.2.50.0090.00018.07
8.2.40.0050.00319.75
8.2.30.0000.00718.31
8.2.20.0040.00417.68
8.2.10.0000.00818.17
8.2.00.0050.00319.52
8.1.280.0100.00725.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.46
8.1.230.0060.00622.67
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.13
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00918.46
8.1.160.0050.00221.87
8.1.150.0050.00318.57
8.1.140.0040.00417.39
8.1.130.0030.00317.83
8.1.120.0070.00017.43
8.1.110.0040.00417.40
8.1.100.0050.00217.29
8.1.90.0040.00417.39
8.1.80.0050.00217.29
8.1.70.0020.00517.35
8.1.60.0040.00417.56
8.1.50.0000.00817.33
8.1.40.0040.00417.50
8.1.30.0030.00617.57
8.1.20.0000.00817.62
8.1.10.0030.00517.62
8.1.00.0040.00417.41
8.0.300.0070.00021.92
8.0.290.0070.00016.75
8.0.280.0000.00718.52
8.0.270.0000.00817.14
8.0.260.0090.00017.27
8.0.250.0030.00316.95
8.0.240.0040.00416.92
8.0.230.0070.00016.88
8.0.220.0030.00316.77
8.0.210.0040.00416.80
8.0.200.0000.00716.91
8.0.190.0000.00716.94
8.0.180.0070.00016.82
8.0.170.0060.00316.88
8.0.160.0030.00516.96
8.0.150.0030.00616.88
8.0.140.0000.00716.83
8.0.130.0050.00013.37
8.0.120.0040.00416.77
8.0.110.0080.00016.91
8.0.100.0000.00716.87
8.0.90.0000.00716.87
8.0.80.0100.00716.85
8.0.70.0050.00316.75
8.0.60.0040.00416.95
8.0.50.0040.00416.81
8.0.30.0140.00517.23
8.0.20.0130.00617.40
8.0.10.0070.00016.85
8.0.00.0110.00716.84
7.4.330.0040.00415.00
7.4.320.0030.00316.59
7.4.300.0060.00016.52
7.4.290.0070.00016.38
7.4.280.0030.00316.46
7.4.270.0040.00416.54
7.4.260.0030.00316.58
7.4.250.0040.00416.31
7.4.240.0040.00416.47
7.4.230.0000.00716.25
7.4.220.0060.02416.40
7.4.210.0100.00316.51
7.4.200.0040.00416.44
7.4.160.0000.01616.46
7.4.150.0100.00917.40
7.4.140.0140.00517.86
7.4.130.0130.00316.58
7.4.120.0050.01216.51
7.4.110.0060.01016.39
7.4.100.0140.00316.36
7.4.90.0120.00616.61
7.4.80.0090.00919.39
7.4.70.0110.00816.29
7.4.60.0040.01416.67
7.4.50.0030.00316.34
7.4.40.0030.01316.22
7.4.30.0060.00916.61
7.4.00.0100.00715.05
7.3.330.0030.00313.27
7.3.320.0020.00213.18
7.3.310.0030.00316.18
7.3.300.0030.00316.37
7.3.290.0060.00916.27
7.3.280.0100.00716.25
7.3.270.0030.01417.40
7.3.260.0130.00716.38
7.3.250.0100.01016.42
7.3.240.0060.01016.34
7.3.230.0130.00316.39
7.3.210.0140.00316.43
7.3.200.0130.00319.39
7.3.190.0070.01016.50
7.3.180.0110.00516.32
7.3.170.0100.00716.40
7.3.160.0080.00816.43
7.3.120.0090.00614.76
7.2.330.0100.01316.61
7.2.320.0140.00316.81
7.2.310.0110.00616.70
7.2.300.0130.00316.51
7.2.290.0100.00616.54
7.2.110.1120.01016.70
7.2.60.0070.01016.75
7.2.00.0000.01319.67
7.1.200.0030.01015.62
7.1.100.0000.01118.00
7.1.70.0000.00717.04
7.1.60.0140.01119.70
7.1.50.0000.02416.56
7.1.00.0100.07022.45
7.0.200.0060.00916.55
7.0.140.0070.07022.07
7.0.60.0130.05020.02
7.0.50.0100.05317.89
7.0.40.0070.04320.23
7.0.30.0370.06320.30
7.0.20.0400.05320.08
7.0.10.0070.06320.18
7.0.00.0130.06320.11
5.6.280.0030.07020.93
5.6.210.0100.07320.45
5.6.200.0070.03718.12
5.6.190.0130.05720.35
5.6.180.4030.04020.39
5.6.170.0170.04020.54
5.6.160.0100.08020.61
5.6.150.0070.06018.16
5.6.140.0070.05318.20
5.6.130.0030.08018.10
5.6.120.0030.08021.06
5.6.110.0030.07720.98
5.6.100.0170.07320.99
5.6.90.0070.07021.10
5.6.80.0070.08320.50
5.6.70.4570.03720.36
5.5.350.0030.08020.39
5.5.340.0000.06318.00
5.5.330.0000.04320.15
5.5.320.0330.07320.29
5.5.310.0230.07320.41
5.5.300.0030.04017.91
5.5.290.0170.04718.00
5.5.280.0170.07320.65
5.5.270.0100.08320.93
5.5.260.0130.06320.86
5.5.250.0100.06720.61
5.5.240.0330.06720.18
5.4.450.0300.04731.25
5.4.440.0330.03029.32
5.4.430.0370.04329.29
5.4.420.0470.04729.27
5.4.410.0100.05029.29
5.4.400.0330.03326.63
5.4.390.0200.05025.05
5.4.380.0170.05718.66
5.4.370.0200.05018.66
5.4.360.0200.05018.58
5.4.350.0270.05018.49
5.4.340.0170.05318.71
5.4.320.0080.03912.46
5.4.310.0080.04012.45
5.4.300.0050.03712.46
5.4.290.0040.03912.46
5.4.280.0070.03312.36
5.4.270.0060.03912.35
5.4.260.0050.03712.35
5.4.250.0040.03912.35
5.4.240.0080.03312.35
5.4.230.0040.04012.35
5.4.220.0050.03712.35
5.4.210.0090.03312.35
5.4.200.0050.03912.35
5.4.190.0090.03512.34
5.4.180.0050.03712.34
5.4.170.0090.03312.35
5.4.160.0060.03512.35
5.4.150.0060.03612.35
5.4.140.0070.03612.03
5.4.130.0090.03212.02
5.4.120.0040.03711.97
5.4.110.0050.03611.97
5.4.100.0040.03611.97
5.4.90.0050.03811.97
5.4.80.0050.03911.97
5.4.70.0080.03211.97
5.4.60.0060.03411.97
5.4.50.0040.03711.97
5.4.40.0040.03711.96
5.4.30.0040.03711.96
5.4.20.0090.03111.95
5.4.10.0030.03711.96
5.4.00.0060.03611.45
5.3.290.0060.04312.80
5.3.280.0070.03712.70
5.3.270.0090.03512.73
5.3.260.0110.03412.72
5.3.250.0090.03512.72
5.3.240.0080.04212.72
5.3.230.0060.03812.71
5.3.220.0050.03912.68
5.3.210.0090.03612.68
5.3.200.0050.03712.68
5.3.190.0050.03812.68
5.3.180.0040.03912.67
5.3.170.0070.03612.67
5.3.160.0050.03712.67
5.3.150.0060.03712.68
5.3.140.0090.03412.66
5.3.130.0070.03812.66
5.3.120.0080.03712.66
5.3.110.0050.04012.66
5.3.100.0060.03712.12
5.3.90.0050.04312.08
5.3.80.0070.03412.07
5.3.70.0050.03612.07
5.3.60.0030.03912.07
5.3.50.0070.03512.00
5.3.40.0030.04012.00
5.3.30.0080.04211.95
5.3.20.0060.03611.73
5.3.10.0050.03611.70
5.3.00.0070.03511.68
5.2.170.0040.0309.18
5.2.160.0080.0299.18
5.2.150.0050.0429.18
5.2.140.0020.0349.18
5.2.130.0060.0289.14
5.2.120.0020.0309.14
5.2.110.0040.0299.15
5.2.100.0080.0249.14
5.2.90.0050.0289.15
5.2.80.0090.0259.14
5.2.70.0030.0329.14
5.2.60.0040.0309.10
5.2.50.0050.0299.07
5.2.40.0070.0269.04
5.2.30.0040.0309.02
5.2.20.0030.0299.01
5.2.10.0050.0288.93
5.2.00.0040.0298.79
5.1.60.0050.0238.07
5.1.50.0070.0228.07
5.1.40.0060.0228.05
5.1.30.0060.0248.40
5.1.20.0110.0288.42
5.1.10.0040.0278.15
5.1.00.0060.0248.15
5.0.50.0030.0216.63
5.0.40.0030.0206.48
5.0.30.0060.0296.30
5.0.20.0070.0166.27
5.0.10.0050.0186.25
5.0.00.0040.0306.25
4.4.90.0040.0144.78
4.4.80.0020.0154.76
4.4.70.0040.0144.75
4.4.60.0060.0134.75
4.4.50.0060.0144.77
4.4.40.0070.0214.71
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0050.0134.85
4.4.00.0080.0194.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0040.0144.63
4.3.80.0080.0194.58
4.3.70.0050.0154.63
4.3.60.0010.0164.63
4.3.50.0040.0144.63
4.3.40.0020.0254.54
4.3.30.0020.0163.29
4.3.20.0000.0183.27
4.3.10.0010.0173.21
4.3.00.0130.01323.83

preferences:
49.93 ms | 401 KiB | 5 Q