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 (array_key_exists('dos', $a)) { 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.0070.00716.63
8.3.50.0100.00621.91
8.3.40.0140.00418.80
8.3.30.0070.01019.09
8.3.20.0040.00420.21
8.3.10.0080.00023.53
8.3.00.0030.00619.12
8.2.180.0080.01118.54
8.2.170.0110.00422.96
8.2.160.0100.00320.34
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00319.36
8.2.110.0100.01022.11
8.2.100.0100.00320.40
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0060.00317.91
8.2.50.0030.00618.07
8.2.40.0040.00420.07
8.2.30.0050.00218.27
8.2.20.0000.00717.75
8.2.10.0030.00618.18
8.2.00.0040.00419.63
8.1.280.0150.00325.92
8.1.270.0060.00323.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.03
8.1.230.0070.00419.22
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0000.00818.57
8.1.160.0040.00421.88
8.1.150.0000.00718.56
8.1.140.0040.00417.34
8.1.130.0070.00017.66
8.1.120.0040.00417.37
8.1.110.0040.00417.30
8.1.100.0030.00517.33
8.1.90.0000.00817.38
8.1.80.0000.00717.34
8.1.70.0000.00717.28
8.1.60.0040.00417.55
8.1.50.0040.00417.37
8.1.40.0040.00417.34
8.1.30.0060.00317.61
8.1.20.0040.00417.59
8.1.10.0040.00417.50
8.1.00.0000.00717.54
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0030.00317.30
8.0.260.0060.00018.44
8.0.250.0000.00716.87
8.0.240.0000.00616.97
8.0.230.0020.00516.80
8.0.220.0030.00316.88
8.0.210.0000.00716.93
8.0.200.0040.00416.84
8.0.190.0000.00717.01
8.0.180.0040.00416.75
8.0.170.0080.00016.89
8.0.160.0000.00717.00
8.0.150.0000.00716.74
8.0.140.0000.00716.85
8.0.130.0000.00513.30
8.0.120.0000.00816.86
8.0.110.0040.00416.72
8.0.100.0040.00516.84
8.0.90.0000.00716.87
8.0.80.0090.00616.86
8.0.70.0060.00316.86
8.0.60.0040.00416.77
8.0.50.0080.00016.70
8.0.30.0130.00917.05
8.0.20.0110.00817.40
8.0.10.0040.00416.83
8.0.00.0060.01116.64
7.4.330.0050.00215.00
7.4.320.0030.00316.52
7.4.300.0030.00316.64
7.4.290.0040.00416.50
7.4.280.0070.00016.59
7.4.270.0000.00716.44
7.4.260.0030.00316.48
7.4.250.0040.00416.45
7.4.240.0020.00516.51
7.4.230.0070.00016.63
7.4.220.0130.00716.46
7.4.210.0140.00716.48
7.4.200.0040.00416.68
7.4.160.0110.00616.71
7.4.150.0040.01317.40
7.4.140.0100.00817.86
7.4.130.0110.00816.63
7.4.120.0110.00516.64
7.4.110.0110.00616.41
7.4.100.0130.00416.52
7.4.90.0110.00716.54
7.4.80.0090.00919.39
7.4.70.0140.00616.47
7.4.60.0040.01416.50
7.4.50.0000.00916.45
7.4.40.0110.00516.50
7.4.30.0090.00616.48
7.4.00.0100.00714.66
7.3.330.0030.00313.16
7.3.320.0000.00513.34
7.3.310.0070.00016.18
7.3.300.0040.00416.31
7.3.290.0050.00916.26
7.3.280.0090.00816.27
7.3.270.0170.00017.40
7.3.260.0170.00016.26
7.3.250.0080.01016.54
7.3.240.0090.00916.27
7.3.230.0110.00616.41
7.3.210.0030.01316.64
7.3.200.0070.01419.39
7.3.190.0290.03416.22
7.3.180.0090.00616.35
7.3.170.0070.01016.49
7.3.160.0060.00916.26
7.3.120.0000.01315.13
7.2.330.0150.00916.50
7.2.320.0100.00716.41
7.2.310.0060.01516.39
7.2.300.0100.00616.34
7.2.290.0060.01016.75
7.2.60.0040.00816.61
7.2.00.0060.00819.54
7.1.200.0110.00015.66
7.1.100.0070.00718.23
7.1.70.0000.00717.12
7.1.60.0030.02019.70
7.1.50.0060.01316.74
7.1.00.0070.07022.31
7.0.200.0060.00316.16
7.0.140.0030.07021.98
7.0.60.0230.06319.94
7.0.50.0030.08317.82
7.0.40.0130.08020.04
7.0.30.0270.09020.18
7.0.20.0170.04320.16
7.0.10.0230.08020.17
7.0.00.0130.07720.16
5.6.280.0070.07020.89
5.6.210.0070.08320.50
5.6.200.0100.03318.12
5.6.190.0170.08020.57
5.6.180.0070.07720.49
5.6.170.0170.04020.45
5.6.160.0170.07320.47
5.6.150.0030.04018.19
5.6.140.0000.04318.15
5.6.130.0200.06718.11
5.6.120.0030.09021.11
5.6.110.0100.07021.00
5.6.100.0070.09021.13
5.6.90.0070.08021.09
5.6.80.0130.07320.39
5.6.70.0230.05720.52
5.5.350.0000.07320.46
5.5.340.0030.04018.00
5.5.330.0130.07720.19
5.5.320.0270.07720.29
5.5.310.0300.06720.29
5.5.300.0070.08018.01
5.5.290.0070.08017.91
5.5.280.0070.04020.84
5.5.270.0100.08020.79
5.5.260.0070.04020.89
5.5.250.0070.07020.46
5.5.240.0130.07020.26
5.4.450.0370.04031.25
5.4.440.0530.04729.32
5.4.430.0330.04329.29
5.4.420.0170.05029.27
5.4.410.0470.04028.90
5.4.400.0370.03326.63
5.4.390.0600.05025.05
5.4.380.0100.06318.51
5.4.370.0170.05718.46
5.4.360.0330.03718.61
5.4.350.0270.04718.47
5.4.340.0130.05718.52
5.4.320.0040.04212.46
5.4.310.0090.03612.46
5.4.300.0090.04012.46
5.4.290.0080.03812.45
5.4.280.0070.03612.36
5.4.270.0060.03612.36
5.4.260.0070.03612.36
5.4.250.0040.03912.36
5.4.240.0040.03712.35
5.4.230.0040.03912.35
5.4.220.0040.03812.34
5.4.210.0060.03512.34
5.4.200.0040.03912.35
5.4.190.0060.03512.34
5.4.180.0100.04112.34
5.4.170.0050.04312.35
5.4.160.0070.03812.35
5.4.150.0110.03512.35
5.4.140.0050.03712.03
5.4.130.0060.04212.02
5.4.120.0090.03311.97
5.4.110.0040.03711.97
5.4.100.0080.03411.97
5.4.90.0030.04011.97
5.4.80.0030.04011.97
5.4.70.0070.03311.96
5.4.60.0070.03211.96
5.4.50.0090.04611.97
5.4.40.0070.03311.95
5.4.30.0070.03911.95
5.4.20.0090.03211.96
5.4.10.0030.03811.95
5.4.00.0030.03911.45
5.3.290.0090.03912.80
5.3.280.0080.03512.71
5.3.270.0090.04212.73
5.3.260.0060.04312.72
5.3.250.0070.03812.72
5.3.240.0080.03512.72
5.3.230.0030.03912.71
5.3.220.0080.03812.68
5.3.210.0070.04112.68
5.3.200.0040.03812.68
5.3.190.0060.03712.68
5.3.180.0060.03712.67
5.3.170.0070.03512.67
5.3.160.0030.03812.68
5.3.150.0070.03512.68
5.3.140.0110.03012.66
5.3.130.0090.03612.66
5.3.120.0040.04012.66
5.3.110.0080.04212.66
5.3.100.0060.03712.12
5.3.90.0070.03512.09
5.3.80.0060.03612.07
5.3.70.0060.04212.07
5.3.60.0060.03812.07
5.3.50.0060.03612.00
5.3.40.0060.03512.00
5.3.30.0040.03711.96
5.3.20.0050.03611.73
5.3.10.0050.03611.70
5.3.00.0100.03711.69
5.2.170.0060.0349.18
5.2.160.0100.0239.19
5.2.150.0050.0309.18
5.2.140.0040.0319.18
5.2.130.0020.0329.14
5.2.120.0040.0369.15
5.2.110.0020.0319.15
5.2.100.0040.0299.14
5.2.90.0040.0309.14
5.2.80.0030.0329.14
5.2.70.0030.0329.14
5.2.60.0070.0329.10
5.2.50.0050.0349.07
5.2.40.0040.0319.04
5.2.30.0070.0299.02
5.2.20.0060.0399.01
5.2.10.0090.0258.93
5.2.00.0080.0308.79
5.1.60.0050.0238.07
5.1.50.0030.0268.07
5.1.40.0030.0328.05
5.1.30.0050.0258.40
5.1.20.0030.0288.42
5.1.10.0040.0268.15
5.1.00.0040.0258.14
5.0.50.0030.0206.62
5.0.40.0030.0196.48
5.0.30.0040.0306.29
5.0.20.0030.0196.27
5.0.10.0040.0196.25
5.0.00.0040.0306.25
4.4.90.0020.0164.78
4.4.80.0060.0124.75
4.4.70.0030.0224.75
4.4.60.0000.0244.75
4.4.50.0040.0144.77
4.4.40.0020.0274.71
4.4.30.0010.0174.76
4.4.20.0030.0154.85
4.4.10.0050.0194.85
4.4.00.0020.0294.76
4.3.110.0040.0204.67
4.3.100.0020.0154.66
4.3.90.0030.0164.63
4.3.80.0030.0314.58
4.3.70.0040.0184.63
4.3.60.0020.0154.63
4.3.50.0040.0224.63
4.3.40.0030.0234.54
4.3.30.0020.0163.29
4.3.20.0020.0163.27
4.3.10.0040.0143.20
4.3.00.0030.01729.29

preferences:
44.46 ms | 401 KiB | 5 Q