3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class AnnotatedClass { public int $x; private string $s; protected array $arr; public AnotherClass $ac; function bar(string $str, bool $b): float { if ($b && $str === "Hi") { return 3.2; } return 0.3; } }

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.70.0190.00316.50
8.3.60.0100.01018.27
8.3.50.0120.01022.07
8.3.40.0140.00718.71
8.3.30.0100.00318.91
8.3.20.0050.00220.27
8.3.10.0000.00820.23
8.3.00.0040.00419.38
8.2.180.0140.00316.38
8.2.170.0070.00722.96
8.2.160.0070.00720.34
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00722.25
8.2.110.0060.00322.03
8.2.100.0040.00717.84
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0040.00418.19
8.2.30.0060.00319.50
8.2.20.0040.00417.60
8.2.10.0000.00817.79
8.2.00.0070.00017.52
8.1.280.0100.01025.92
8.1.270.0090.00022.24
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.12
8.1.230.0110.00019.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.22
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0060.00318.58
8.1.160.0050.00221.86
8.1.150.0000.00818.72
8.1.140.0050.00317.27
8.1.130.0040.00417.86
8.1.120.0030.00317.36
8.1.110.0040.00417.32
8.1.100.0080.00017.30
8.1.90.0030.00317.22
8.1.80.0040.00417.25
8.1.70.0030.00317.28
8.1.60.0060.00317.32
8.1.50.0000.00817.41
8.1.40.0060.00317.27
8.1.30.0040.00417.38
8.1.20.0070.00017.49
8.1.10.0050.00217.33
8.1.00.0060.00317.35
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0000.00717.18
8.0.260.0000.00617.05
8.0.250.0000.00716.77
8.0.240.0030.00316.74
8.0.230.0030.00316.71
8.0.220.0040.00416.70
8.0.210.0070.00016.81
8.0.200.0000.00716.81
8.0.190.0000.00716.74
8.0.180.0030.00516.66
8.0.170.0080.00016.73
8.0.160.0040.00416.64
8.0.150.0030.00316.65
8.0.140.0030.00616.71
8.0.130.0000.00713.30
8.0.120.0000.00716.64
8.0.110.0000.00716.76
8.0.100.0050.00316.62
8.0.90.0000.00716.81
8.0.80.0060.00916.73
8.0.70.0040.00416.54
8.0.60.0040.00416.71
8.0.50.0040.00416.72
8.0.30.0110.00817.20
8.0.20.0140.00617.40
8.0.10.0070.00016.91
8.0.00.0120.00716.75
7.4.330.0020.00215.00
7.4.320.0030.00316.48
7.4.300.0000.00616.46
7.4.290.0000.00716.51
7.4.280.0040.00416.36
7.4.270.0030.00316.46
7.4.260.0030.00316.33
7.4.250.0030.00316.18
7.4.240.0020.00616.40
7.4.230.0000.00716.18
7.4.220.0100.00716.42
7.4.210.0060.00916.36
7.4.200.0050.00316.36
7.4.160.0120.01216.09
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0080.00816.33
7.4.120.0130.00616.42
7.4.110.0120.00416.46
7.4.100.0070.01016.30
7.4.90.0080.00816.35
7.4.80.0150.00619.39
7.4.70.0070.01316.45
7.4.60.0060.00916.31
7.4.50.0030.00316.41
7.4.40.0090.00616.38
7.4.30.0090.01216.57
7.3.330.0030.00313.21
7.3.320.0060.00012.96
7.3.310.0070.00016.02
7.3.300.0000.00716.14
7.3.290.0080.00616.11
7.3.280.0090.00716.10
7.3.270.0140.00517.40
7.3.260.0130.00516.46
7.3.250.0110.00616.37
7.3.240.0090.00916.29
7.3.230.0060.00916.39
7.3.210.0100.00716.31
7.3.200.0160.01019.39
7.3.190.0060.01016.50
7.3.180.0030.01316.19
7.3.170.0100.01016.27
7.3.160.0090.01216.39
7.2.330.0040.01416.46
7.2.320.0070.01016.52
7.2.310.0130.00616.36
7.2.300.0070.01016.17
7.2.290.0080.00816.29
5.6.10.0030.01314.14
5.6.00.0090.00313.81
5.5.170.0040.01113.73
5.5.160.0060.00510.75
5.5.150.0060.00611.02
5.5.140.0100.00010.48
5.5.130.0080.00410.80
5.5.120.0000.00810.33
5.5.110.0100.00010.90
5.5.100.0040.00710.50
5.5.90.0000.00810.66
5.5.80.0030.00611.00
5.5.70.0070.00410.92
5.5.60.0060.00610.80
5.5.50.0090.00310.88
5.5.40.0050.00310.50
5.5.30.0000.01010.81
5.5.20.0060.00310.92
5.5.10.0110.00010.48
5.5.00.0080.00310.59
5.4.330.0090.00010.46
5.4.320.0080.00310.65
5.4.310.0000.01210.72
5.4.300.0030.00610.97
5.4.290.0080.00010.51
5.4.280.0070.00310.72
5.4.270.0040.00411.00
5.4.260.0040.00410.87
5.4.250.0070.00010.94
5.4.240.0000.01010.77
5.4.230.0110.00010.49
5.4.220.0100.00010.83
5.4.210.0070.00210.64
5.4.200.0030.00910.84
5.4.190.0000.00810.80
5.4.180.0000.00910.69
5.4.170.0080.00210.45
5.4.160.0030.00610.91
5.4.150.0050.00510.50
5.4.140.0040.00710.73
5.4.130.0080.00411.02
5.4.120.0070.00410.69
5.4.110.0030.00710.93
5.4.100.0110.00010.57
5.4.90.0030.00610.64
5.4.80.0040.00810.79
5.4.70.0060.00310.85
5.4.60.0040.00710.93
5.4.50.0050.00510.66
5.4.40.0000.01010.50
5.4.30.0040.00710.55
5.4.20.0070.00410.64
5.4.10.0000.01110.84
5.4.00.0000.01110.67

preferences:
42.39 ms | 401 KiB | 5 Q