3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); var_dump($foo->bar(0b10100111001));

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.01118.18
8.3.50.0120.00317.93
8.3.40.0110.00318.63
8.3.30.0110.00718.40
8.3.20.0040.00420.21
8.3.10.0000.00723.48
8.3.00.0050.00319.26
8.2.180.0100.01316.61
8.2.170.0110.00322.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00017.59
8.2.120.0050.00326.35
8.2.110.0030.00622.37
8.2.100.0110.00417.59
8.2.90.0030.00619.05
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0040.00417.90
8.2.50.0060.00319.24
8.2.40.0040.00420.61
8.2.30.0000.00720.62
8.2.20.0030.00617.62
8.2.10.0000.00717.98
8.2.00.0000.00817.96
8.1.280.0090.00925.92
8.1.270.0060.00323.96
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00320.74
8.1.230.0110.00017.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0070.00317.13
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0030.00618.57
8.1.160.0000.00821.83
8.1.150.0050.00218.73
8.1.140.0040.00419.38
8.1.130.0030.00317.57
8.1.120.0100.00017.39
8.1.110.0040.00417.30
8.1.100.0000.00717.38
8.1.90.0030.00517.43
8.1.80.0020.00517.30
8.1.70.0070.00017.27
8.1.60.0050.00317.59
8.1.50.0080.00017.40
8.1.40.0040.00417.54
8.1.30.0000.00917.58
8.1.20.0000.00717.62
8.1.10.0080.00017.50
8.1.00.0030.00517.32
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.42
8.0.270.0030.00317.18
8.0.260.0000.00817.23
8.0.250.0040.00416.88
8.0.240.0030.00316.88
8.0.230.0000.00816.92
8.0.220.0030.00616.73
8.0.210.0030.00516.88
8.0.200.0030.00316.87
8.0.190.0000.00816.88
8.0.180.0040.00416.80
8.0.170.0030.00516.72
8.0.160.0030.00316.91
8.0.150.0040.00416.72
8.0.140.0040.00416.81
8.0.130.0000.00713.25
8.0.120.0060.00316.81
8.0.110.0040.00416.71
8.0.100.0050.00316.77
8.0.90.0040.00416.68
8.0.80.0120.00316.80
8.0.70.0080.00016.89
8.0.60.0080.00016.82
8.0.50.0070.00016.93
8.0.30.0130.00516.82
8.0.20.0090.01017.40
8.0.10.0000.00716.97
8.0.00.0070.01016.79
7.4.330.0050.00016.78
7.4.320.0030.00316.43
7.4.300.0060.00016.55
7.4.290.0030.00316.60
7.4.280.0040.00416.45
7.4.270.0060.00316.57
7.4.260.0030.00316.62
7.4.250.0040.00416.41
7.4.240.0000.00716.61
7.4.230.0000.00716.38
7.4.220.0030.02016.52
7.4.210.0060.01016.63
7.4.200.0000.00816.47
7.4.160.0120.00316.48
7.4.150.0090.00917.40
7.4.140.0120.01017.86
7.4.130.0120.00516.47
7.4.120.0100.00716.43
7.4.110.0090.00916.23
7.4.100.0160.00716.48
7.4.90.0060.01116.56
7.4.80.0090.00919.39
7.4.70.0100.01016.43
7.4.60.0090.00916.50
7.4.50.0100.00316.49
7.4.40.0070.01016.29
7.4.30.0110.00616.31
7.4.00.0030.01414.76
7.3.330.0000.00613.02
7.3.320.0050.00013.26
7.3.310.0040.00416.20
7.3.300.0040.00416.19
7.3.290.0030.00316.24
7.3.280.0110.00616.23
7.3.270.0090.00917.40
7.3.260.0100.00616.22
7.3.250.0130.00716.36
7.3.240.0080.00916.45
7.3.230.0070.01016.39
7.3.210.0130.00316.35
7.3.200.0080.00816.55
7.3.190.0120.00916.20
7.3.180.0120.00816.40
7.3.170.0100.01316.27
7.3.160.0060.00916.52
7.3.120.0070.01114.90
7.3.110.0060.01314.42
7.3.100.0090.00614.61
7.3.90.0100.00314.43
7.3.80.0100.00314.57
7.3.70.0040.01514.73
7.3.60.0090.00614.30
7.3.50.0110.00714.89
7.3.40.0030.00714.67
7.3.30.0100.00314.42
7.3.20.0070.00716.46
7.3.10.0000.01416.51
7.3.00.0060.00316.41
7.2.330.0070.01416.63
7.2.320.0110.01116.67
7.2.310.0150.00616.54
7.2.300.0000.01716.28
7.2.290.0100.01016.64
7.2.250.0060.01314.55
7.2.240.0100.00614.56
7.2.230.0090.00614.89
7.2.220.0090.00315.10
7.2.210.0030.01714.91
7.2.200.0100.00314.87
7.2.190.0060.00914.73
7.2.180.0070.01014.70
7.2.170.0080.00414.81
7.2.60.0070.00716.41
7.2.00.0130.01319.55
7.1.330.0060.00615.25
7.1.320.0030.00615.40
7.1.310.0070.01015.52
7.1.300.0030.00715.43
7.1.290.0040.00815.34
7.1.280.0070.00715.81
7.1.270.0080.00415.48
7.1.260.0060.00615.66
7.1.200.0000.00915.39
7.1.100.0030.00917.86
7.1.70.0000.00816.82
7.1.60.0140.00719.12
7.1.50.0040.01916.73
7.1.00.0070.07322.35
7.0.200.0030.00716.69
7.0.60.0070.08719.87
7.0.50.0000.04317.88
7.0.40.0070.04720.23
7.0.30.0330.07720.33
7.0.20.0330.08320.23
7.0.10.0030.06020.33
7.0.00.0100.05020.24
5.6.280.0000.06320.78
5.6.210.0030.08720.75
5.6.200.0070.08318.22
5.6.190.0100.08020.45
5.6.180.0370.06020.55
5.6.170.0330.05020.45
5.6.160.0070.04020.54
5.6.150.0070.04318.20
5.6.140.0130.07018.23
5.6.130.0070.05318.18
5.6.120.0100.08721.02
5.6.110.0130.08020.98
5.6.100.0100.08020.98
5.6.90.0070.07721.00
5.6.80.0000.06720.53
5.5.350.0000.04720.32
5.5.340.0170.07718.07
5.5.330.0100.08720.27
5.5.320.0170.05020.30
5.5.310.0270.04720.30
5.5.300.0030.08317.90
5.5.290.0000.09017.98
5.5.280.0070.06020.77
5.5.270.0000.06020.67
5.5.260.0130.07720.93
5.5.250.0100.08020.62
5.5.240.0200.07320.26

preferences:
58.31 ms | 400 KiB | 5 Q