3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar { }; } namespace { use Foo\Bar; class_alias(Bar::class, 'FooBar'); class FooBar {}; class GuineaPig { public function withNamespace(Bar $bar) { echo sprintf("Passing %s worked with %s\n", get_class($bar), __METHOD__); } public function withoutNamespace(FooBar $bar) { echo sprintf("Passing %s worked with %s\n", get_class($bar), __METHOD__); } } $bar = new Bar(); $foobar = new FooBar(); $pig = new GuineaPig(); $pig->withNamespace($bar); $pig->withoutNamespace($foobar); $pig->withNamespace($foobar); $pig->withoutNamespace($bar); }

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.0040.01116.58
8.3.60.0040.01516.50
8.3.50.0100.01016.36
8.3.40.0160.00019.20
8.3.30.0160.00018.84
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.190.0120.00316.63
8.2.180.0100.01025.92
8.2.170.0040.01122.96
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00426.35
8.2.110.0030.00622.25
8.2.100.0040.00817.70
8.2.90.0060.00317.97
8.2.80.0040.00419.12
8.2.70.0000.00917.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0030.00619.88
8.2.30.0000.00817.95
8.2.20.0040.00418.07
8.2.10.0040.00419.22
8.2.00.0040.00419.06
8.1.280.0100.01025.92
8.1.270.0100.01021.80
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0090.00023.84
8.1.230.0120.00022.75
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0000.00818.51
8.1.160.0050.00218.80
8.1.150.0040.00418.75
8.1.140.0040.00418.80
8.1.130.0000.00719.97
8.1.120.0040.00417.36
8.1.110.0000.00817.32
8.1.100.0000.00917.46
8.1.90.0040.00417.35
8.1.80.0000.00817.43
8.1.70.0030.00317.41
8.1.60.0030.00617.53
8.1.50.0090.00017.50
8.1.40.0030.00617.42
8.1.30.0040.00417.66
8.1.20.0080.00017.63
8.1.10.0040.00417.55
8.1.00.0040.00417.50
8.0.300.0050.00221.94
8.0.290.0090.00016.75
8.0.280.0070.00018.46
8.0.270.0000.00718.13
8.0.260.0000.00618.37
8.0.250.0030.00317.02
8.0.240.0030.00316.92
8.0.230.0000.00716.95
8.0.220.0000.00716.86
8.0.210.0040.00416.81
8.0.200.0050.00217.00
8.0.190.0040.00416.99
8.0.180.0070.00416.80
8.0.170.0040.00416.95
8.0.160.0040.00416.93
8.0.150.0000.00816.90
8.0.140.0070.00016.84
8.0.130.0000.00613.30
8.0.120.0040.00416.76
8.0.110.0070.00016.88
8.0.100.0030.00516.80
8.0.90.0040.00416.90
8.0.80.0080.00816.80
8.0.70.0000.00816.88
8.0.60.0050.00316.71
8.0.50.0040.00416.89
8.0.30.0090.00917.07
8.0.20.0100.01317.00
8.0.10.0000.00716.91
8.0.00.0130.01016.95
7.4.330.0040.00015.55
7.4.320.0000.00616.47
7.4.300.0030.00316.43
7.4.290.0030.00316.60
7.4.280.0080.00016.50
7.4.270.0030.00516.42
7.4.260.0000.00513.28
7.4.250.0050.00216.49
7.4.240.0020.00616.58
7.4.230.0000.00716.40
7.4.220.0030.00316.51
7.4.210.0100.00416.58
7.4.200.0070.00016.72
7.4.130.0070.01116.59
7.4.120.0160.00616.59
7.4.110.0090.00916.43
7.4.100.0110.00516.52
7.4.90.0090.00916.49
7.4.80.0030.01319.39
7.4.70.0070.01016.48
7.4.60.0100.00616.61
7.4.50.0080.00816.43
7.4.40.0080.00816.17
7.4.30.0080.00816.38
7.4.20.0170.00316.39
7.4.10.0060.00916.34
7.4.00.0060.00916.46
7.3.330.0000.00616.32
7.3.320.0000.00513.27
7.3.310.0030.00516.28
7.3.300.0070.00016.39
7.3.290.0030.00316.45
7.3.280.0130.00516.34
7.3.260.0080.00916.59
7.3.230.0110.00616.29
7.3.210.0060.01116.63
7.3.200.0070.01016.39
7.3.190.0070.01016.41
7.3.180.0060.01116.49
7.3.170.0120.00816.24
7.3.160.0130.00816.62
7.3.150.0100.00616.40
7.3.140.0030.01216.42
7.3.130.0030.01416.64
7.3.120.0040.01116.38
7.3.110.0170.00416.31
7.3.100.0120.00616.58
7.3.90.0080.00816.50
7.3.80.0100.00716.26
7.3.70.0080.00816.41
7.3.60.0070.01016.46
7.3.50.0160.00316.32
7.3.40.0050.00916.45
7.3.30.0090.00616.47
7.3.20.0120.00616.26
7.3.10.0120.00416.38
7.3.00.0090.00816.31
7.2.330.0130.00616.56
7.2.320.0070.01016.63
7.2.310.0130.00616.34
7.2.300.0080.00816.60
7.2.290.0090.00916.69
7.2.280.0120.00616.63
7.2.270.0060.01016.67
7.2.260.0130.00316.38
7.2.250.0100.00616.25
7.2.240.0110.00416.77
7.2.230.0090.00916.50
7.2.220.0110.00416.70
7.2.210.0080.00816.54
7.2.200.0100.00616.41
7.2.190.0060.01116.45
7.2.180.0110.00716.55
7.2.170.0050.01016.48
7.2.160.0130.00316.48
7.2.150.0150.00416.72
7.2.140.0110.00516.60
7.2.130.0140.00316.66
7.2.120.0070.01016.59
7.2.110.0040.01216.58
7.2.100.0100.00716.70
7.2.90.0120.00616.68
7.2.80.0060.01116.50
7.2.70.0030.02016.66
7.2.60.0090.01616.65
7.2.50.0090.00916.64
7.2.40.0140.00316.36
7.2.30.0060.01216.36
7.2.20.0110.00716.46
7.2.10.0100.00716.48
7.2.00.0170.00616.51

preferences:
50.84 ms | 401 KiB | 5 Q