3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(bool $in) { return $in ? 3 : 5; } $inParam = (new ReflectionParameter('foo', 'in')); $result = foo(TRUE); echo "Param: ", $inParam, PHP_EOL, "Type: ", $inParam->getType();

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.0110.00716.38
8.3.50.0030.01216.38
8.3.40.0060.00918.74
8.3.30.0120.00318.67
8.3.20.0070.00020.39
8.3.10.0060.00321.76
8.3.00.0080.00020.77
8.2.180.0060.00918.18
8.2.170.0070.00722.96
8.2.160.0070.00722.26
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00022.13
8.2.120.0070.00026.35
8.2.110.0040.00721.04
8.2.100.0040.00717.91
8.2.90.0060.00319.23
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0050.00517.80
8.2.50.0030.00618.10
8.2.40.0040.00422.38
8.2.30.0040.00421.05
8.2.20.0000.00718.03
8.2.10.0050.00218.11
8.2.00.0000.00718.06
8.1.280.0100.00325.92
8.1.270.0080.00023.95
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0070.00322.52
8.1.230.0060.00621.10
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0000.00817.10
8.1.180.0050.00218.10
8.1.170.0080.00018.47
8.1.160.0000.00718.89
8.1.150.0040.00418.78
8.1.140.0040.00419.55
8.1.130.0030.00318.82
8.1.120.0000.00717.33
8.1.110.0000.00817.37
8.1.100.0000.00717.38
8.1.90.0060.00317.41
8.1.80.0000.00817.38
8.1.70.0000.00717.29
8.1.60.0000.00917.59
8.1.50.0040.00417.40
8.1.40.0080.00017.41
8.1.30.0030.00617.64
8.1.20.0000.00717.65
8.1.10.0040.00417.63
8.1.00.0000.00817.37
8.0.300.0030.00620.02
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0000.00717.24
8.0.260.0040.00416.83
8.0.250.0000.00716.91
8.0.240.0000.00816.93
8.0.230.0000.00816.76
8.0.220.0000.00716.89
8.0.210.0060.00016.83
8.0.200.0060.00316.73
8.0.190.0000.00816.83
8.0.180.0000.00716.77
8.0.170.0050.00216.74
8.0.160.0040.00416.80
8.0.150.0000.00716.66
8.0.140.0030.00516.77
8.0.130.0040.00413.25
8.0.120.0000.00716.69
8.0.110.0040.00416.83
8.0.100.0000.00716.69
8.0.90.0040.00416.86
8.0.80.0100.00616.73
8.0.70.0000.00716.70
8.0.60.0040.00416.73
8.0.50.0000.00816.70
8.0.30.0090.00917.03
8.0.20.0110.00917.40
8.0.10.0040.00416.85
8.0.00.0120.00616.84
7.4.330.0000.00515.55
7.4.320.0000.00616.39
7.4.300.0030.00316.39
7.4.290.0030.00316.59
7.4.280.0000.00816.51
7.4.270.0030.00316.46
7.4.260.0030.00616.58
7.4.250.0000.00816.56
7.4.240.0070.00016.43
7.4.230.0050.00216.63
7.4.220.0120.00616.50
7.4.210.0100.00516.52
7.4.200.0030.00316.46
7.4.160.0060.01116.45
7.4.150.0030.01417.40
7.4.140.0090.00917.86
7.4.130.0120.00616.62
7.4.120.0140.01016.42
7.4.110.0030.01316.48
7.4.100.0100.01316.52
7.4.90.0120.01216.43
7.4.80.0030.01419.39
7.4.70.0130.00316.37
7.4.60.0070.01016.34
7.4.50.0030.01316.53
7.4.40.0120.00916.60
7.4.30.0060.01716.45
7.4.10.0120.00014.74
7.4.00.0070.00814.95
7.3.330.0070.00013.16
7.3.320.0000.00513.17
7.3.310.0000.00716.34
7.3.300.0000.00716.23
7.3.290.0090.00716.27
7.3.280.0090.00916.30
7.3.270.0100.00717.40
7.3.260.0070.00916.53
7.3.250.0140.00716.39
7.3.240.0060.01416.37
7.3.230.0130.00416.32
7.3.210.0100.00716.64
7.3.200.0060.01016.35
7.3.190.0060.01116.56
7.3.180.0070.01016.65
7.3.170.0130.00916.45
7.3.160.0070.00916.43
7.3.130.0030.01314.82
7.3.120.0060.00915.04
7.3.110.0070.00714.53
7.3.100.0100.00015.00
7.3.90.0030.01415.11
7.3.80.0060.00914.46
7.3.70.0030.01014.83
7.3.60.0030.01014.88
7.3.50.0070.00714.88
7.3.40.0070.00714.88
7.3.30.0100.00314.96
7.3.20.0070.01016.79
7.3.10.0090.00616.71
7.3.00.0070.00616.72
7.2.330.0090.00916.59
7.2.320.0060.01616.68
7.2.310.0130.01016.80
7.2.300.0080.00816.55
7.2.290.0000.01816.55
7.2.260.0060.01315.26
7.2.250.0190.00015.05
7.2.240.0060.01015.08
7.2.230.0060.01015.20
7.2.220.0090.00615.05
7.2.210.0030.01514.79
7.2.200.0060.00914.70
7.2.190.0110.00714.91
7.2.180.0090.00014.67
7.2.170.0060.00915.03
7.2.160.0030.00915.13
7.2.150.0060.00916.82
7.2.140.0060.00916.93
7.2.130.0060.00516.68
7.2.120.0050.00916.67
7.2.110.0110.00316.77
7.2.100.0070.00316.62
7.2.90.0050.00716.77
7.2.80.0090.00616.72
7.2.70.0100.00516.68
7.2.60.0060.00716.74
7.2.50.0070.00716.72
7.2.40.0050.01016.75
7.2.30.0120.00716.65
7.2.20.0050.00516.71
7.2.10.0080.00616.51
7.2.00.0060.00817.62
7.1.330.0070.01015.56
7.1.320.0070.00715.74
7.1.310.0090.00615.93
7.1.300.0060.00615.54
7.1.290.0030.01215.43
7.1.280.0070.00715.74
7.1.270.0150.00315.75
7.1.260.0040.01115.46
7.1.250.0010.01115.75
7.1.240.0070.00415.70
7.1.230.0070.00315.84
7.1.220.0000.01515.90
7.1.210.0040.01015.96
7.1.200.0060.00815.71
7.1.190.0030.01215.64
7.1.180.0030.00915.96
7.1.170.0080.00315.76
7.1.160.0030.01015.78
7.1.150.0100.00315.82
7.1.140.0000.01015.82
7.1.130.0000.01115.43
7.1.120.0030.01015.55
7.1.110.0100.00715.70
7.1.100.0050.00716.94
7.1.90.0000.01215.68
7.1.80.0070.00715.72
7.1.70.0020.00716.37
7.1.60.0150.00525.19
7.1.50.0120.00725.09
7.1.40.0110.00624.94
7.1.30.0080.01025.03
7.1.20.0060.01325.14
7.1.10.0020.01116.21
7.1.00.0030.00715.96
7.0.330.0060.00815.44
7.0.320.0070.00315.40
7.0.310.0120.00015.50
7.0.300.0000.01315.14
7.0.290.0040.00815.43
7.0.280.0000.00815.59
7.0.270.0070.00715.41
7.0.260.0090.00915.34
7.0.250.0080.00415.52
7.0.240.0070.00715.55
7.0.230.0040.00815.60
7.0.220.0000.01415.58
7.0.210.0060.00315.40
7.0.200.0050.00716.10
7.0.190.0020.01115.95
7.0.180.0060.00615.70
7.0.170.0020.01015.62
7.0.160.0020.01015.77
7.0.150.0050.00815.68
7.0.140.0050.00615.84
7.0.130.0020.00916.12
7.0.120.0050.00715.98
7.0.110.0040.00715.94
7.0.100.0050.00715.85
7.0.90.0060.00415.97
7.0.80.0030.00815.73
7.0.70.0060.00615.82
7.0.60.0020.01115.83
7.0.50.0020.00815.74
7.0.40.0020.00714.88
7.0.30.0060.00514.90
7.0.20.0050.00715.04
7.0.10.0080.00515.08
7.0.00.0070.00514.91
5.6.400.0070.00414.32
5.6.390.0040.00414.27
5.6.380.0110.00414.58
5.6.370.0090.00614.22
5.6.360.0110.00414.37
5.6.350.0030.00714.25
5.6.340.0070.00714.20
5.6.330.0040.00814.68
5.6.320.0090.00914.23
5.6.310.0040.01114.65
5.6.300.0080.00614.19
5.6.290.0020.00914.43
5.6.280.0060.00914.45
5.6.270.0070.01014.27
5.6.260.0100.00614.63
5.6.250.0060.00914.02
5.6.240.0030.00714.37
5.6.230.0060.00614.02
5.6.220.0070.00714.00
5.6.210.0000.01814.11
5.6.200.0070.01013.98
5.6.190.0040.00714.19
5.6.180.0030.00814.29
5.6.170.0080.00414.25
5.6.160.0070.00714.60
5.6.150.0080.00814.38
5.6.140.0100.00614.39
5.6.130.0060.00614.39
5.6.120.0040.00814.26
5.6.110.0040.00814.31
5.6.100.0040.01114.42
5.6.90.0090.00314.31
5.6.80.0030.01014.41
5.6.70.0000.00814.25
5.6.60.0030.00914.26
5.6.50.0060.00614.37
5.6.40.0080.00614.06
5.6.30.0000.01514.15
5.6.20.0070.00414.14
5.6.10.0090.00614.07
5.6.00.0030.01014.25

preferences:
44.85 ms | 401 KiB | 5 Q