3v4l.org

run code in 300+ PHP versions simultaneously
<?php$host= 'www.google.c0m'; $cmd = "ping $host"; $output = shell_exec($cmd); $error= "no pudo"; if (stristr($output,$error)){ echo '<font color=red><h1>El host ' . $host .' NO responde a ping </h1></font>'; } else { echo '<font color=green><h1>El host ' . $host .' SI responde a ping </h1></font>'; } ?>

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.0200.00016.38
8.3.50.0090.00722.75
8.3.40.0070.00718.74
8.3.30.0080.00619.16
8.3.20.0040.00420.13
8.3.10.0050.00321.90
8.3.00.0060.00319.13
8.2.180.0090.00916.32
8.2.170.0070.01122.96
8.2.160.0070.00720.27
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0050.00221.00
8.2.110.0100.00620.92
8.2.100.0110.00017.78
8.2.90.0030.00617.90
8.2.80.0000.00817.97
8.2.70.0070.00317.50
8.2.60.0080.00417.90
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0030.00618.07
8.2.20.0000.00817.49
8.2.10.0000.00717.85
8.2.00.0040.00417.42
8.1.280.0070.00725.92
8.1.270.0040.00423.97
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00022.58
8.1.230.0110.00020.97
8.1.220.0000.00817.74
8.1.210.0040.00418.84
8.1.200.0040.00417.25
8.1.190.0030.00517.10
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0070.00021.98
8.1.150.0030.00518.65
8.1.140.0040.00417.26
8.1.130.0060.00319.55
8.1.120.0040.00417.19
8.1.110.0000.00717.35
8.1.100.0000.00717.32
8.1.90.0030.00317.32
8.1.80.0030.00317.22
8.1.70.0030.00317.29
8.1.60.0030.00517.45
8.1.50.0000.00817.36
8.1.40.0080.00017.36
8.1.30.0060.00317.45
8.1.20.0000.00817.43
8.1.10.0080.00017.34
8.1.00.0040.00417.26
8.0.300.0040.00419.83
8.0.290.0000.00716.75
8.0.280.0030.00318.42
8.0.270.0030.00317.15
8.0.260.0040.00417.09
8.0.250.0030.00316.87
8.0.240.0040.00416.82
8.0.230.0030.00316.84
8.0.220.0030.00316.65
8.0.210.0030.00316.73
8.0.200.0030.00316.84
8.0.190.0040.00416.88
8.0.180.0000.00716.80
8.0.170.0000.00716.67
8.0.160.0070.00016.73
8.0.150.0080.00016.70
8.0.140.0000.00716.77
8.0.130.0050.00013.47
8.0.120.0000.00816.82
8.0.110.0040.00416.83
8.0.100.0070.00016.62
8.0.90.0030.00516.83
8.0.80.0120.01016.68
8.0.70.0050.00216.71
8.0.60.0050.00216.57
8.0.50.0040.00416.64
8.0.30.0100.00916.96
8.0.20.0090.01017.40
8.0.10.0050.00216.85
8.0.00.0100.00716.63
7.4.330.0030.00315.01
7.4.320.0030.00316.50
7.4.300.0030.00316.51
7.4.290.0070.00316.35
7.4.280.0050.00316.41
7.4.270.0080.00016.36
7.4.260.0000.00916.38
7.4.250.0040.00416.33
7.4.240.0010.00616.45
7.4.230.0000.00716.18
7.4.220.0090.01316.41
7.4.210.0060.00916.50
7.4.200.0070.00016.57
7.4.160.0060.01316.46
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0110.01116.32
7.4.120.0080.00916.42
7.4.110.0070.01016.27
7.4.100.0150.00616.31
7.4.90.0130.00616.39
7.4.80.0150.00919.39
7.4.70.0110.00816.23
7.4.60.0110.00716.35
7.4.50.0040.00416.16
7.4.40.0040.01216.29
7.4.30.0040.01216.44
7.3.330.0060.00013.18
7.3.320.0030.00313.23
7.3.310.0000.00916.09
7.3.300.0030.00316.18
7.3.290.0070.00716.11
7.3.280.0090.00716.14
7.3.270.0100.00717.40
7.3.260.0180.00316.44
7.3.240.0190.00016.22
7.3.230.0070.01016.39
7.3.210.0100.00716.46
7.3.200.0060.00919.39
7.3.190.0050.01016.15
7.3.180.0060.00916.13
7.3.170.0030.01316.27
7.3.160.0150.01216.36
7.2.330.0100.00716.50
7.2.320.0030.01416.25
7.2.310.0030.01316.45
7.2.300.0100.00716.53
7.2.290.0030.01516.44
5.4.320.0090.04512.45
5.4.310.0070.04312.45
5.4.300.0070.04112.45
5.4.290.0070.04512.45
5.4.280.0060.03612.34
5.4.270.0090.03812.35
5.4.260.0070.03612.34
5.4.250.0030.04012.35
5.4.240.0060.04112.34
5.4.230.0060.03712.34
5.4.220.0050.04112.34
5.4.210.0060.03512.34
5.4.200.0090.03412.34
5.4.190.0070.03412.34
5.4.180.0050.03512.33
5.4.170.0050.03512.34
5.4.160.0050.03612.34
5.4.150.0070.04312.34
5.4.140.0050.04312.02
5.4.130.0030.03712.01
5.4.120.0060.03511.96
5.4.110.0040.04211.96
5.4.100.0080.03611.96
5.4.90.0060.03611.96
5.4.80.0040.03911.96
5.4.70.0040.03511.96
5.4.60.0060.03411.96
5.4.50.0040.03711.96
5.4.40.0040.03611.95
5.4.30.0070.03411.95
5.4.20.0070.03411.95
5.4.10.0050.03611.95
5.4.00.0100.04011.44

preferences:
44.59 ms | 401 KiB | 5 Q