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"];

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.0080.00816.50
8.3.50.0130.00722.11
8.3.40.0040.01118.47
8.3.30.0110.01118.82
8.3.20.0070.00020.34
8.3.10.0070.00023.47
8.3.00.0080.00019.19
8.2.180.0110.00416.50
8.2.170.0110.00422.96
8.2.160.0110.00420.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0040.00719.71
8.2.100.0040.00717.84
8.2.90.0070.00317.75
8.2.80.0050.00317.97
8.2.70.0030.00517.93
8.2.60.0040.00418.17
8.2.50.0060.00318.10
8.2.40.0000.00819.93
8.2.30.0040.00418.19
8.2.20.0080.00017.81
8.2.10.0080.00018.07
8.2.00.0000.00719.43
8.1.280.0060.00925.92
8.1.270.0090.00023.89
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0050.00524.02
8.1.230.0060.00620.31
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00421.95
8.1.150.0020.00518.48
8.1.140.0040.00417.30
8.1.130.0040.00417.83
8.1.120.0000.00717.34
8.1.110.0000.00717.38
8.1.100.0050.00217.39
8.1.90.0030.00417.27
8.1.80.0070.00017.35
8.1.70.0030.00317.37
8.1.60.0030.00617.51
8.1.50.0060.00317.46
8.1.40.0050.00317.35
8.1.30.0000.00817.48
8.1.20.0040.00417.66
8.1.10.0040.00417.56
8.1.00.0040.00417.56
8.0.300.0040.00419.59
8.0.290.0070.00016.58
8.0.280.0000.00718.41
8.0.270.0000.00717.26
8.0.260.0050.00217.14
8.0.250.0030.00317.01
8.0.240.0000.00617.00
8.0.230.0040.00416.94
8.0.220.0030.00316.83
8.0.210.0030.00316.85
8.0.200.0000.00616.89
8.0.190.0000.00716.84
8.0.180.0040.00416.83
8.0.170.0070.00016.82
8.0.160.0070.00016.85
8.0.150.0000.00716.73
8.0.140.0040.00416.76
8.0.130.0000.00613.30
8.0.120.0060.00316.90
8.0.110.0000.00816.81
8.0.100.0030.00516.83
8.0.90.0000.00816.72
8.0.80.0090.00616.78
8.0.70.0060.00316.95
8.0.60.0050.00216.73
8.0.50.0030.00516.95
8.0.30.0100.00917.16
8.0.20.0140.00517.40
8.0.10.0040.00416.92
8.0.00.0090.00916.78
7.4.330.0030.00315.00
7.4.320.0060.00016.37
7.4.300.0060.00016.40
7.4.290.0070.00016.55
7.4.280.0030.00516.39
7.4.270.0040.00416.63
7.4.260.0000.00716.52
7.4.250.0040.00416.27
7.4.240.0000.00716.58
7.4.230.0000.00816.44
7.4.220.0200.00616.31
7.4.210.0070.00716.52
7.4.200.0000.00716.57
7.4.160.0130.00416.42
7.4.150.0060.01017.40
7.4.140.0110.00517.86
7.4.130.0090.00816.43
7.4.120.0090.00816.45
7.4.110.0090.00916.34
7.4.100.0110.00716.29
7.4.90.0140.00716.33
7.4.80.0140.00919.39
7.4.70.0150.00916.57
7.4.60.0130.00916.52
7.4.50.0060.00316.62
7.4.40.0100.00716.46
7.4.30.0070.01016.52
7.4.00.0000.01314.88
7.3.330.0030.00313.20
7.3.320.0030.00313.30
7.3.310.0030.00316.35
7.3.300.0030.00316.16
7.3.290.0030.01316.21
7.3.280.0100.00916.30
7.3.270.0060.00917.40
7.3.260.0090.00916.43
7.3.250.0120.00816.42
7.3.240.0090.00816.55
7.3.230.0090.00916.55
7.3.210.0030.02116.46
7.3.200.0090.01316.55
7.3.190.0120.00616.40
7.3.180.0110.00516.39
7.3.170.0060.01016.46
7.3.160.0060.01316.33
7.3.120.0080.00614.93
7.2.330.0100.01316.84
7.2.320.0090.00916.77
7.2.310.0070.01016.50
7.2.300.0120.00616.68
7.2.290.0080.01016.69
7.2.00.0060.00919.20
7.1.100.0030.01018.19
7.1.70.0000.00817.08
7.1.60.0120.01219.70
7.1.50.0070.01416.54
7.1.00.0030.07722.31
7.0.200.0000.00716.83
7.0.140.0100.06721.92
7.0.110.0100.04719.89
7.0.100.0070.08020.01
7.0.90.0100.05019.95
7.0.80.0070.09020.04
7.0.70.0100.04720.06
7.0.60.0100.08020.04
7.0.50.0130.07019.88
7.0.40.0130.07319.75
7.0.30.0030.05719.75
7.0.20.0130.07019.85
7.0.10.0100.07719.84
7.0.00.0070.08719.69
5.6.280.0030.07321.14
5.6.260.0100.07720.66
5.6.250.0070.07320.65
5.6.240.0100.06020.48
5.6.230.0130.07720.65
5.6.220.0130.07720.62
5.6.210.0170.08020.55
5.6.200.0130.08020.70
5.6.190.0030.08320.64
5.6.180.0070.08020.66
5.6.170.0100.08020.56
5.6.160.0030.08320.61
5.6.150.0070.05320.85
5.6.140.0030.05720.46
5.6.130.0070.07720.59
5.6.120.0130.09020.65
5.6.110.0070.07020.59
5.6.100.0030.07320.63
5.6.90.0070.07020.52
5.6.80.0030.08320.02
5.6.70.0070.06319.93
5.6.60.0030.08319.84
5.6.50.0070.03319.99
5.6.40.0100.07719.82
5.6.30.0070.08019.95
5.6.20.0070.07020.00
5.6.10.0130.06720.20
5.6.00.0030.07319.91
5.5.380.0100.04317.63
5.5.370.0030.06717.56
5.5.360.0030.09017.62
5.5.350.0170.07317.61
5.5.340.0070.08018.10
5.5.330.0070.07718.03
5.5.320.0000.08317.87
5.5.310.0070.07718.16
5.5.300.0030.08017.76
5.5.290.0170.07317.76
5.5.280.0100.03718.00
5.5.270.0100.06718.15
5.5.260.0000.04317.84
5.5.250.0030.07717.65
5.5.240.0100.07717.39
5.5.230.0100.03317.63
5.5.220.0070.07717.55
5.5.210.0130.06717.39
5.5.200.0030.07317.20
5.5.190.0170.07317.47
5.5.180.0100.07017.24
5.5.160.0030.06017.45
5.5.150.0000.04317.46
5.5.140.0030.04317.36
5.5.130.0070.04017.20
5.5.120.0030.03717.48
5.5.110.0070.03717.60
5.5.100.0000.04017.51
5.5.90.0130.02717.40
5.5.80.0030.04717.23
5.5.70.0030.04017.25
5.5.60.0070.03017.22
5.5.50.0030.03017.09
5.5.40.0130.03017.36
5.5.30.0070.03317.39
5.5.20.0070.07017.39
5.5.10.0030.03317.37
5.5.00.0070.03717.24
5.4.450.0130.08019.26
5.4.440.0170.07019.30
5.4.430.0030.07319.59
5.4.420.0100.07019.25
5.4.410.0030.04019.20
5.4.400.0070.04019.27
5.4.390.0100.07319.12
5.4.380.0070.07019.00
5.4.370.0170.07018.93
5.4.360.0130.07018.93
5.4.350.0030.07719.14
5.4.340.0170.06019.16
5.4.320.0100.06719.12
5.4.310.0030.03719.27
5.4.300.0070.03319.07
5.4.290.0030.04019.02
5.4.280.0070.04319.07
5.4.270.0000.04719.00
5.4.260.0070.04019.27
5.4.250.0030.03319.11
5.4.240.0030.03718.92
5.4.230.0000.04019.19
5.4.220.0030.04019.11
5.4.210.0030.03718.94
5.4.200.0070.03019.04
5.4.190.0130.05019.15
5.4.180.0000.03719.16
5.4.170.0000.04018.92
5.4.160.0000.03318.91
5.4.150.0000.03719.00
5.4.140.0070.03016.47
5.4.130.0000.03016.22
5.4.120.0170.02316.25
5.4.110.0030.03316.19
5.4.100.0030.03716.29
5.4.90.0030.03016.38
5.4.80.0030.03316.47
5.4.70.0030.02716.35
5.4.60.0030.03316.35
5.4.50.0030.03316.35
5.4.40.0070.03316.32
5.4.30.0000.03316.34
5.4.20.0030.03716.45
5.4.10.0170.02716.35
5.4.00.0030.03015.66
5.3.290.0100.03314.49
5.3.280.0000.03714.67
5.3.270.0000.05714.55
5.3.260.0030.03714.50
5.3.250.0000.04314.50
5.3.240.0000.04714.54
5.3.230.0030.03014.54
5.3.220.0030.03714.43
5.3.210.0030.05014.66
5.3.200.0000.03314.63
5.3.190.0000.03314.56
5.3.180.0070.03714.46
5.3.170.0030.03014.50
5.3.160.0030.03014.51
5.3.150.0000.03314.66
5.3.140.0070.03714.57
5.3.130.0000.03314.54
5.3.120.0070.02714.57
5.3.110.0000.03314.37
5.3.100.0070.03314.10
5.3.90.0000.03713.93
5.3.80.0070.03314.00
5.3.70.0000.04014.12
5.3.60.0070.03313.90
5.3.50.0070.03313.96
5.3.40.0000.04013.79
5.3.30.0100.02313.84
5.3.20.0030.06013.58
5.3.10.0000.06713.53
5.3.00.0100.06713.54
5.2.170.0000.02711.77
5.2.160.0030.02311.77
5.2.150.0030.02711.77
5.2.140.0030.03011.77
5.2.130.0030.02711.77
5.2.120.0070.05711.77
5.2.110.0000.03711.77
5.2.100.0000.02711.77
5.2.90.0030.05011.77
5.2.80.0000.02711.77
5.2.70.0030.05711.77
5.2.60.0000.04711.77
5.2.50.0070.03711.77
5.2.40.0070.05011.77
5.2.30.0070.05711.77
5.2.20.0100.04711.77
5.2.10.0030.04011.77
5.2.00.0070.05311.77
5.1.60.0070.03011.77
5.1.50.0000.05711.77
5.1.40.0000.05311.77
5.1.30.0100.02311.77
5.1.20.0030.02311.77
5.1.10.0070.04011.77
5.1.00.0000.03011.77
5.0.50.0000.03311.77
5.0.40.0030.04011.77
5.0.30.0000.05011.77
5.0.20.0000.04711.77
5.0.10.0000.04311.77
5.0.00.0000.06711.77
4.4.90.0000.03711.77
4.4.80.0030.03011.77
4.4.70.0000.03311.77
4.4.60.0000.01311.77
4.4.50.0030.02711.77
4.4.40.0030.02311.77
4.4.30.0070.02711.77
4.4.20.0000.03711.77
4.4.10.0000.02311.77
4.4.00.0000.05711.77
4.3.110.0030.03311.77
4.3.100.0000.03711.77
4.3.90.0000.03711.77
4.3.80.0030.03011.77
4.3.70.0070.03311.77
4.3.60.0070.02711.77
4.3.50.0000.03311.77
4.3.40.0000.02711.77
4.3.30.0000.03011.77
4.3.20.0000.01711.77
4.3.10.0030.02711.77
4.3.00.0030.01311.77

preferences:
46.09 ms | 401 KiB | 5 Q