3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = "localhost"; $port = 0; // oder false oder '' ... $output = $host . ($port) ? 'true' : 'false'; var_dump($output) ;

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.00316.38
8.3.50.0100.00717.32
8.3.40.0090.00618.50
8.3.30.0030.01218.46
8.3.20.0040.00418.65
8.3.10.0050.00320.48
8.3.00.0080.00019.25
8.2.180.0110.00416.75
8.2.170.0110.00422.96
8.2.160.0100.00621.10
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00419.07
8.2.110.0030.00721.02
8.2.100.0060.00617.72
8.2.90.0000.01020.91
8.2.80.0040.00417.80
8.2.70.0040.00417.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0040.00418.04
8.2.20.0000.00817.70
8.2.10.0000.00717.61
8.2.00.0040.00417.73
8.1.280.0040.01525.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0030.00728.09
8.1.240.0000.00820.80
8.1.230.0070.00320.93
8.1.220.0000.00817.74
8.1.210.0060.00318.89
8.1.200.0090.00017.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0000.00718.80
8.1.160.0080.00018.76
8.1.150.0000.00718.50
8.1.140.0000.00717.29
8.1.130.0070.00017.71
8.1.120.0040.00417.40
8.1.110.0000.00717.33
8.1.100.0000.00817.30
8.1.90.0020.00517.25
8.1.80.0050.00217.28
8.1.70.0060.00017.40
8.1.60.0050.00517.39
8.1.50.0080.00017.47
8.1.40.0040.00417.44
8.1.30.0040.00417.40
8.1.20.0040.00417.61
8.1.10.0030.00517.49
8.1.00.0040.00417.45
8.0.300.0000.00719.90
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0030.00317.24
8.0.260.0030.00316.80
8.0.250.0000.00816.91
8.0.240.0050.00316.97
8.0.230.0040.00416.82
8.0.220.0000.00816.86
8.0.210.0040.00416.88
8.0.200.0030.00316.82
8.0.190.0000.00716.89
8.0.180.0000.00716.94
8.0.170.0000.00816.78
8.0.160.0000.00716.98
8.0.150.0040.00416.70
8.0.140.0040.00416.72
8.0.130.0060.00013.35
8.0.120.0020.00516.80
8.0.110.0000.00716.90
8.0.100.0000.00816.88
8.0.90.0030.00316.79
8.0.80.0060.00916.93
8.0.70.0040.00416.75
8.0.60.0070.00016.91
8.0.50.0080.00016.73
8.0.30.0120.00616.89
8.0.20.0090.00916.88
8.0.10.0040.00416.87
8.0.00.0110.00816.62
7.4.330.0000.00812.93
7.4.320.0000.00616.52
7.4.300.0030.00316.45
7.4.290.0070.00416.53
7.4.280.0040.00416.50
7.4.270.0000.00716.48
7.4.260.0030.00313.11
7.4.250.0080.00016.37
7.4.240.0030.00316.32
7.4.230.0000.00716.55
7.4.220.0130.00316.52
7.4.210.0070.00816.50
7.4.200.0070.00016.59
7.4.190.0030.00316.56
7.4.160.0070.01016.62
7.4.150.0060.01016.41
7.4.140.0090.00916.49
7.4.130.0130.00716.29
7.4.120.0090.00816.41
7.4.110.0060.01316.50
7.4.100.0080.00916.39
7.4.90.0060.01616.46
7.4.80.0070.01019.39
7.4.70.0090.00616.48
7.4.60.0130.00716.31
7.4.50.0080.00516.41
7.4.40.0070.01016.38
7.4.30.0080.00816.41
7.4.00.0070.00714.77
7.3.330.0060.00012.95
7.3.320.0060.00012.94
7.3.310.0030.00316.23
7.3.300.0030.00316.05
7.3.290.0140.00316.17
7.3.280.0090.00916.22
7.3.270.0130.00416.45
7.3.260.0100.01316.37
7.3.250.0130.01216.17
7.3.240.0060.01016.33
7.3.230.0130.00316.23
7.3.210.0100.00716.42
7.3.200.0130.00916.20
7.3.190.0090.01216.43
7.3.180.0060.00916.13
7.3.170.0090.00616.24
7.3.160.0110.00716.33
7.3.120.0090.00914.65
7.2.330.0070.01016.46
7.2.320.0120.00616.59
7.2.310.0060.01816.62
7.2.300.0100.00716.41
7.2.290.0090.00616.24
7.2.60.0060.00616.57
7.2.00.0100.00319.29
7.1.200.0060.00615.84
7.1.100.0040.01117.96
7.1.70.0040.00416.68
7.1.60.0070.01119.40
7.1.50.0000.01616.88
7.1.00.0070.07322.44
7.0.200.0000.00816.94
7.0.140.0070.07022.04
7.0.120.0000.06022.03
7.0.110.0130.07319.92
7.0.100.0100.07720.07
7.0.90.0070.08020.07
7.0.80.0000.08020.04
7.0.70.0000.08319.85
7.0.60.0070.08020.01
7.0.50.0330.03320.08
7.0.40.0000.07019.74
7.0.30.0030.08319.70
7.0.20.0100.07719.77
7.0.10.0100.07319.71
7.0.00.0070.08319.71
5.6.280.0070.07321.07
5.6.260.0030.08020.73
5.6.250.0030.09020.58
5.6.240.0030.04320.56
5.6.230.0200.07720.55
5.6.220.0000.09020.69
5.6.210.0000.08020.80
5.6.200.0100.08320.70
5.6.190.0130.07720.58
5.6.180.0170.07320.55
5.6.170.0130.07320.61
5.6.160.0070.08020.58
5.6.150.0030.08720.80
5.6.140.0130.07320.54
5.6.130.0100.08020.84
5.6.120.0130.08020.70
5.6.110.0100.08320.54
5.6.100.0300.05320.54
5.6.90.0130.07320.60
5.6.80.0070.07720.03
5.6.70.0170.07320.22
5.6.60.0170.07719.83
5.6.50.0070.06320.05
5.6.40.0100.04320.01
5.6.30.0130.07719.91
5.6.20.0070.07019.97
5.6.10.0100.07319.99
5.6.00.0070.07319.99
5.5.380.0070.04017.52
5.5.370.0100.04017.63
5.5.360.0000.08717.43
5.5.350.0070.05017.63
5.5.340.0070.06717.89
5.5.330.0100.07717.91
5.5.320.0070.07717.85
5.5.310.0100.06718.03
5.5.300.0100.04718.01
5.5.290.0070.07718.16
5.5.280.0070.08017.76
5.5.270.0030.08018.15
5.5.260.0070.07717.86
5.5.250.0070.07317.70
5.5.240.0070.04317.39
5.5.230.0100.05717.22
5.5.220.0000.07717.38
5.5.210.0130.07317.40
5.5.200.0070.07717.52
5.5.190.0030.08717.41
5.5.180.0130.07017.34
5.5.160.0070.07017.52
5.5.150.0170.07017.48
5.5.140.0070.07017.19
5.5.130.0130.06717.47
5.5.120.0030.06717.20
5.5.110.0070.07717.19
5.5.100.0030.07317.41
5.5.90.0170.06717.11
5.5.80.0100.07717.37
5.5.70.0070.07317.41
5.5.60.0000.04717.36
5.5.50.0100.06717.11
5.5.40.0030.07017.33
5.5.30.0100.07317.34
5.5.20.0070.07317.40
5.5.10.0070.07317.10
5.5.00.0130.05017.13
5.4.450.0070.07319.60
5.4.440.0070.04719.50
5.4.430.0100.07719.36
5.4.420.0130.07319.40
5.4.410.0030.08319.20
5.4.400.0200.05718.95
5.4.390.0000.05719.16
5.4.380.0130.07318.95
5.4.370.0130.07318.95
5.4.360.0030.08019.00
5.4.350.0000.05718.95
5.4.340.0100.06019.03
5.4.320.0070.07319.10
5.4.310.0000.08719.16
5.4.300.0030.07318.98
5.4.290.0100.06719.12
5.4.280.0100.07319.10
5.4.270.0070.07019.12
5.4.260.0070.07019.09
5.4.250.0170.07019.15
5.4.240.0100.07318.95
5.4.230.0070.04319.17
5.4.220.0170.06019.07
5.4.210.0100.05719.11
5.4.200.0000.08318.99
5.4.190.0100.07719.12
5.4.180.0070.07318.99
5.4.170.0100.07019.02
5.4.160.0030.06319.14
5.4.150.0100.07318.92
5.4.140.0070.07716.36
5.4.130.0100.03016.27
5.4.120.0030.07316.56
5.4.110.0030.08016.52
5.4.100.0170.06316.48
5.4.90.0030.07716.41
5.4.80.0070.04316.11
5.4.70.0070.04716.17
5.4.60.0070.06016.46
5.4.50.0170.03316.33
5.4.40.0170.06016.40
5.4.30.0130.07016.51
5.4.20.0030.07016.33
5.4.10.0100.07316.47
5.4.00.0100.07015.67
5.3.290.0070.08314.76
5.3.280.0070.06014.69
5.3.270.0070.07714.48
5.3.260.0030.05714.68
5.3.250.0000.07014.61
5.3.240.0170.05314.60
5.3.230.0030.05314.59
5.3.220.0070.04714.66
5.3.210.0100.06714.58
5.3.200.0130.07714.41
5.3.190.0030.07314.45
5.3.180.0070.07014.61
5.3.170.0070.07314.46
5.3.160.0130.06714.34
5.3.150.0100.07714.34
5.3.140.0100.07314.45
5.3.130.0030.05314.41
5.3.120.0100.07314.42
5.3.110.0100.07314.40
5.3.100.0030.04713.83
5.3.90.0070.06313.87
5.3.80.0000.04713.93
5.3.70.0030.04313.87
5.3.60.0070.04014.03
5.3.50.0070.05013.84
5.3.40.0030.05314.01
5.3.30.0030.03713.81
5.3.20.0030.04013.78
5.3.10.0000.05713.52
5.3.00.0030.05713.42
5.2.170.0130.03711.03
5.2.160.0030.02711.09
5.2.150.0030.02711.06
5.2.140.0070.03011.07
5.2.130.0030.03010.88
5.2.120.0030.02711.04
5.2.110.0000.03311.12
5.2.100.0000.03011.00
5.2.90.0030.03311.09
5.2.80.0000.04011.10
5.2.70.0030.03710.98
5.2.60.0000.03310.97
5.2.50.0000.03310.97
5.2.40.0100.04011.00
5.2.30.0030.03010.98
5.2.20.0030.03310.88
5.2.10.0030.02310.82
5.2.00.0070.06010.70
5.1.60.0030.02310.23
5.1.50.0030.0239.80
5.1.40.0000.03310.04
5.1.30.0030.02710.41
5.1.20.0000.04710.35
5.1.10.0070.03010.02
5.1.00.0100.02310.13
5.0.50.0000.0209.72
5.0.40.0070.0339.72
5.0.30.0000.0309.72
5.0.20.0000.0209.72
5.0.10.0030.0179.72
5.0.00.0030.0309.72
4.4.90.0000.0179.72
4.4.80.0000.0239.72
4.4.70.0030.0139.72
4.4.60.0070.0139.72
4.4.50.0000.0179.72
4.4.40.0070.0479.72
4.4.30.0030.0339.72
4.4.20.0000.0209.72
4.4.10.0030.0309.72
4.4.00.0000.0239.72
4.3.110.0000.0179.72
4.3.100.0030.0139.72
4.3.90.0030.0139.72
4.3.80.0000.0239.72
4.3.70.0030.0139.72
4.3.60.0000.0179.72
4.3.50.0000.0279.72
4.3.40.0030.0209.72
4.3.30.0000.0209.72
4.3.20.0070.0139.72
4.3.10.0000.0179.72
4.3.00.0000.0139.72

preferences:
35.37 ms | 400 KiB | 5 Q