3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fun(integer $bool): integer { return $bool; } fun((int) true);

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.0040.01116.63
8.3.50.0030.01216.13
8.3.40.0150.00018.84
8.3.30.0060.00918.55
8.3.20.0070.00020.12
8.3.10.0070.00023.65
8.3.00.0040.00423.54
8.2.180.0060.01518.16
8.2.170.0070.00719.03
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00419.63
8.2.120.0040.00426.35
8.2.110.0060.00319.21
8.2.100.0080.00417.80
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0110.00017.23
8.2.60.0000.00917.80
8.2.50.0030.00518.07
8.2.40.0090.00320.47
8.2.30.0000.00720.59
8.2.20.0030.00717.56
8.2.10.0030.00617.98
8.2.00.0030.00617.96
8.1.280.0100.00725.92
8.1.270.0040.00423.83
8.1.260.0070.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00020.85
8.1.230.0040.00719.15
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0000.00918.10
8.1.170.0030.00618.48
8.1.160.0040.00420.59
8.1.150.0070.00018.75
8.1.140.0050.00319.44
8.1.130.0040.00417.55
8.1.120.0050.00317.23
8.1.110.0040.00417.21
8.1.100.0030.00517.33
8.1.90.0000.00717.39
8.1.80.0040.00417.25
8.1.70.0000.00717.20
8.1.60.0050.00317.50
8.1.50.0000.00917.45
8.1.40.0050.00317.42
8.1.30.0040.00417.62
8.1.20.0090.00017.57
8.1.10.0060.00317.40
8.1.00.0030.00517.36
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.36
8.0.270.0020.00517.10
8.0.260.0000.00717.17
8.0.250.0000.00716.86
8.0.240.0000.00716.81
8.0.230.0000.00717.00
8.0.220.0070.00016.91
8.0.210.0050.00216.90
8.0.200.0060.00016.84
8.0.190.0040.00416.96
8.0.180.0080.00016.79
8.0.170.0080.00016.91
8.0.160.0000.00716.81
8.0.150.0000.00716.86
8.0.140.0040.00416.73
8.0.130.0050.00013.26
8.0.120.0000.00916.73
8.0.110.0000.00716.77
8.0.100.0040.00416.88
8.0.90.0030.00316.70
8.0.80.0120.00916.79
8.0.70.0000.00716.92
8.0.60.0040.00416.77
8.0.50.0040.00416.93
8.0.30.0100.00917.02
8.0.20.0100.00817.40
8.0.10.0070.00016.98
8.0.00.0120.00816.70
7.4.330.0000.00516.76
7.4.320.0000.00716.27
7.4.300.0000.00716.32
7.4.290.0030.00316.48
7.4.280.0030.00616.56
7.4.270.0000.00716.54
7.4.260.0000.00716.48
7.4.250.0000.00716.46
7.4.240.0030.00616.49
7.4.230.0030.00316.24
7.4.220.0140.01116.46
7.4.210.0070.01316.61
7.4.200.0000.00716.44
7.4.160.0060.00916.28
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0140.00516.37
7.4.120.0120.00716.45
7.4.110.0130.01016.35
7.4.100.0090.00916.62
7.4.90.0070.01016.41
7.4.80.0080.00819.39
7.4.70.0100.00616.45
7.4.60.0000.01616.29
7.4.50.0060.00616.43
7.4.40.0110.01116.56
7.4.30.0120.00616.33
7.4.00.0070.01014.90
7.3.330.0060.00013.15
7.3.320.0000.00813.06
7.3.310.0030.00316.39
7.3.300.0040.00416.29
7.3.290.0080.00916.25
7.3.280.0100.00716.26
7.3.270.0100.00717.40
7.3.260.0100.00716.22
7.3.250.0060.01216.44
7.3.240.0100.00816.42
7.3.230.0060.01016.50
7.3.210.0070.01016.46
7.3.200.0070.01419.39
7.3.190.0110.01116.33
7.3.180.0100.00616.42
7.3.170.0090.01216.59
7.3.160.0060.01016.55
7.2.330.0100.00716.61
7.2.320.0140.00416.47
7.2.310.0100.00716.38
7.2.300.0140.00316.56
7.2.290.0100.00716.50
7.2.60.0330.00016.71
7.2.00.0030.00919.16
7.1.200.0090.00415.71
7.1.100.0000.01118.05
7.1.70.0000.00817.07
7.1.60.0040.02119.27
7.1.50.0130.01017.02
7.1.00.0000.08022.35
7.0.200.0070.00316.63
7.0.60.0100.07321.79
7.0.50.0100.06317.87
7.0.40.0200.07320.27
7.0.30.0470.07020.20
7.0.20.0330.07720.34
7.0.10.0100.08720.19
7.0.00.0100.08720.12
5.6.280.0000.03321.14
5.6.210.0100.03320.48
5.6.200.0030.05718.19
5.6.190.0130.07320.46
5.6.180.0400.06320.39
5.6.170.0330.07020.52
5.6.160.0070.09020.63
5.6.150.0070.03718.14
5.6.140.0000.09018.28
5.6.130.0030.05018.11
5.6.120.0030.08720.96
5.6.110.0000.04720.98
5.6.100.0000.04720.95
5.6.90.0030.06320.95
5.6.80.0030.08320.38
5.5.350.0070.07320.31
5.5.340.0100.03717.96
5.5.330.0030.05720.44
5.5.320.0270.05020.35
5.5.310.0230.07720.32
5.5.300.0070.05017.94
5.5.290.0030.04017.97
5.5.280.0070.05020.79
5.5.270.0170.07720.86
5.5.260.0170.04020.97
5.5.250.0100.06020.57
5.5.240.0070.04720.15

preferences:
63.42 ms | 400 KiB | 5 Q