3v4l.org

run code in 300+ PHP versions simultaneously
<?hh // Hack functions are annotated with types. function my_negation(bool $x): bool { return !$x; } // FIXME: annotate this function parameter // and return with the type 'int'. function add_one(int $x): int { return $x+1; } echo add_one(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.60.0120.00316.25
8.3.50.0120.00721.99
8.3.40.0110.00418.77
8.3.30.0130.00318.79
8.3.20.0040.00420.10
8.3.10.0080.00021.77
8.3.00.0040.00419.55
8.2.180.0110.01118.29
8.2.170.0110.00422.96
8.2.160.0130.00020.53
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.96
8.2.110.0100.00022.25
8.2.100.0090.00319.51
8.2.90.0040.00419.23
8.2.80.0100.00017.97
8.2.70.0050.00317.50
8.2.60.0060.00317.91
8.2.50.0050.00318.07
8.2.40.0030.00518.07
8.2.30.0030.00318.16
8.2.20.0000.00817.42
8.2.10.0030.00517.89
8.2.00.0050.00317.52
8.1.280.0000.01425.92
8.1.270.0040.00423.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0110.00019.22
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00717.22
8.1.190.0040.00416.98
8.1.180.0070.00018.10
8.1.170.0030.00618.58
8.1.160.0040.00421.83
8.1.150.0000.00718.61
8.1.140.0000.00717.26
8.1.130.0040.00417.75
8.1.120.0000.00817.36
8.1.110.0030.00317.21
8.1.100.0080.00017.21
8.1.90.0000.00717.35
8.1.80.0070.00017.36
8.1.70.0000.00817.26
8.1.60.0040.00417.44
8.1.50.0000.00817.30
8.1.40.0060.00317.37
8.1.30.0030.00517.39
8.1.20.0050.00217.49
8.1.10.0000.00717.41
8.1.00.0000.00717.26
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0030.00318.42
8.0.270.0000.00717.17
8.0.260.0000.00617.20
8.0.250.0070.00016.71
8.0.240.0030.00616.80
8.0.230.0000.00716.77
8.0.220.0040.00216.70
8.0.210.0000.00716.77
8.0.200.0000.00816.70
8.0.190.0050.00316.82
8.0.180.0000.00816.79
8.0.170.0040.00416.62
8.0.160.0050.00316.82
8.0.150.0040.00416.64
8.0.140.0000.00716.61
8.0.130.0070.00013.47
8.0.120.0000.00816.60
8.0.110.0000.00816.58
8.0.100.0050.00216.65
8.0.90.0040.00416.70
8.0.80.0090.00616.77
8.0.70.0070.00016.64
8.0.60.0040.00416.79
8.0.50.0040.00416.58
8.0.30.0080.01416.87
8.0.20.0100.01017.40
8.0.10.0000.00816.69
8.0.00.0090.00916.58
7.4.330.0000.00515.00
7.4.320.0030.00316.45
7.4.300.0040.00416.34
7.4.290.0030.00316.41
7.4.280.0050.00316.26
7.4.270.0000.00716.36
7.4.260.0030.00316.45
7.4.250.0030.00516.32
7.4.240.0030.00316.41
7.4.230.0000.00716.46
7.4.220.0480.03716.40
7.4.210.0070.00716.54
7.4.200.0050.00316.38
7.4.160.0060.01016.48
7.4.150.0120.01217.40
7.4.140.0080.00817.86
7.4.130.0060.01016.27
7.4.120.0030.01516.25
7.4.110.0090.02016.48
7.4.100.0100.01016.35
7.4.90.0070.01016.31
7.4.80.0070.01019.39
7.4.70.0000.01516.54
7.4.60.0220.00416.46
7.4.50.0000.00716.15
7.4.40.0060.01016.22
7.4.30.0090.00616.43
7.3.330.0050.00213.32
7.3.320.0000.00613.07
7.3.310.0070.00016.15
7.3.300.0070.00016.15
7.3.290.0060.00816.25
7.3.280.0100.00716.15
7.3.270.0130.00717.40
7.3.260.0070.01116.46
7.3.250.0070.01116.43
7.3.240.0150.00316.12
7.3.230.0100.01016.39
7.3.210.0110.00516.23
7.3.200.0120.00619.39
7.3.190.0090.01216.21
7.3.180.0090.00616.14
7.3.170.0100.00616.27
7.3.160.0110.00516.18
7.2.330.0030.01316.43
7.2.320.0120.00416.15
7.2.310.0130.00416.44
7.2.300.0070.01416.34
7.2.290.0060.00916.57
5.4.320.0050.03812.45
5.4.310.0030.04512.45
5.4.300.0080.03812.45
5.4.290.0050.03912.45
5.4.280.0050.03612.34
5.4.270.0070.03612.34
5.4.260.0070.03712.34
5.4.250.0070.03612.34
5.4.240.0040.04412.34
5.4.230.0080.03912.34
5.4.220.0070.03512.34
5.4.210.0060.03512.34
5.4.200.0040.04012.34
5.4.190.0060.03512.34
5.4.180.0050.03612.33
5.4.170.0020.03912.34
5.4.160.0050.03512.34
5.4.150.0080.03812.34
5.4.140.0090.03812.02
5.4.130.0060.03612.01
5.4.120.0060.04011.97
5.4.110.0050.03611.96
5.4.100.0070.03411.96
5.4.90.0100.03711.96
5.4.80.0070.03611.96
5.4.70.0040.03611.96
5.4.60.0050.03911.96
5.4.50.0040.03611.96
5.4.40.0060.03311.95
5.4.30.0090.04011.95
5.4.20.0050.03611.95
5.4.10.0070.03311.95
5.4.00.0080.03411.44
5.3.290.0120.04512.80
5.3.280.0080.03512.71
5.3.270.0090.03812.73
5.3.260.0080.04512.72
5.3.250.0080.03612.72
5.3.240.0050.03812.72
5.3.230.0070.03612.71
5.3.220.0050.03812.68
5.3.210.0080.03712.68
5.3.200.0080.03412.68
5.3.190.0040.04112.67
5.3.180.0040.03812.67
5.3.170.0030.03912.67
5.3.160.0070.03512.67
5.3.150.0050.04912.68
5.3.140.0080.03612.66
5.3.130.0060.03812.66
5.3.120.0070.04012.65
5.3.110.0090.04412.66
5.3.100.0070.03512.12
5.3.90.0060.03512.08
5.3.80.0040.03712.07
5.3.70.0080.03312.07
5.3.60.0040.03812.07
5.3.50.0030.04012.00
5.3.40.0100.03612.00
5.3.30.0090.04011.94
5.3.20.0070.03411.71
5.3.10.0060.03511.69
5.3.00.0090.03711.67

preferences:
43.89 ms | 401 KiB | 5 Q