3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __toString() { return spl_object_hash($this); } } $a[(string) new Foo()] = 'bar'; var_dump($a);

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.0030.01016.75
8.3.50.0130.00517.25
8.3.40.0070.00718.90
8.3.30.0110.00418.67
8.3.20.0030.00618.60
8.3.10.0040.00420.34
8.3.00.0050.00319.26
8.2.180.0090.00918.31
8.2.170.0100.00322.96
8.2.160.0040.01419.43
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00626.16
8.2.120.0040.00419.95
8.2.110.0070.00421.04
8.2.100.0040.00717.72
8.2.90.0040.00419.47
8.2.80.0040.00419.21
8.2.70.0040.00417.75
8.2.60.0090.00018.03
8.2.50.0090.00018.07
8.2.40.0000.01018.34
8.2.30.0040.00418.12
8.2.20.0000.00817.77
8.2.10.0000.00717.73
8.2.00.0060.00317.79
8.1.280.0170.00025.92
8.1.270.0070.00024.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0050.00523.91
8.1.230.0040.00820.77
8.1.220.0000.00817.91
8.1.210.0000.00818.96
8.1.200.0070.00617.25
8.1.190.0060.00617.63
8.1.180.0040.00418.10
8.1.170.0050.00318.89
8.1.160.0000.00718.84
8.1.150.0070.00018.57
8.1.140.0060.00317.38
8.1.130.0030.00317.67
8.1.120.0040.00417.46
8.1.110.0040.00417.46
8.1.100.0030.00417.30
8.1.90.0000.00717.41
8.1.80.0000.00717.43
8.1.70.0070.00017.27
8.1.60.0050.00317.50
8.1.50.0060.00317.41
8.1.40.0040.00417.46
8.1.30.0070.00017.57
8.1.20.0060.00317.56
8.1.10.0000.00717.33
8.1.00.0000.00817.27
8.0.300.0000.00720.02
8.0.290.0000.00716.63
8.0.280.0090.00018.45
8.0.270.0040.00417.18
8.0.260.0000.00716.87
8.0.250.0000.00716.86
8.0.240.0110.00016.93
8.0.230.0040.00416.84
8.0.220.0000.00816.86
8.0.210.0070.00016.88
8.0.200.0050.00216.84
8.0.190.0000.00716.84
8.0.180.0040.00416.82
8.0.170.0040.00416.89
8.0.160.0040.00416.78
8.0.150.0030.00716.82
8.0.140.0050.00516.78
8.0.130.0030.00313.28
8.0.120.0040.00416.85
8.0.110.0000.00716.77
8.0.100.0030.00516.87
8.0.90.0030.00516.95
8.0.80.0090.00616.84
8.0.70.0040.00416.92
8.0.60.0040.00416.95
8.0.50.0030.00616.91
8.0.30.0110.00817.07
8.0.20.0090.01117.10
8.0.10.0040.00416.94
8.0.00.0080.01016.67
7.4.330.0000.00512.91
7.4.320.0000.00616.59
7.4.300.0060.00016.42
7.4.290.0030.00316.46
7.4.280.0000.00816.59
7.4.270.0030.00316.65
7.4.260.0030.00313.21
7.4.250.0030.00616.39
7.4.240.0070.00016.49
7.4.230.0030.00316.35
7.4.220.0090.00916.66
7.4.210.0080.00916.57
7.4.200.0040.00416.34
7.4.190.0030.00316.75
7.4.160.0090.00616.41
7.4.150.0120.00616.30
7.4.140.0090.00916.29
7.4.130.0100.00716.33
7.4.120.0070.01016.52
7.4.110.0070.01116.40
7.4.100.0130.00716.63
7.4.90.0160.00916.31
7.4.80.0090.00816.25
7.4.70.0100.00716.19
7.4.60.0060.01316.45
7.4.50.0040.00416.24
7.4.40.0070.00716.52
7.4.30.0060.00916.40
7.4.00.0000.01514.95
7.3.330.0060.00013.20
7.3.320.0030.00313.43
7.3.310.0030.00316.23
7.3.300.0000.00716.36
7.3.290.0100.00716.41
7.3.280.0040.01316.33
7.3.270.0140.00516.33
7.3.260.0140.00216.41
7.3.250.0090.01216.39
7.3.240.0130.00616.48
7.3.230.0060.01616.41
7.3.210.0130.00316.53
7.3.200.0090.00619.39
7.3.190.0110.00816.32
7.3.180.0060.01016.41
7.3.170.0080.00816.43
7.3.160.0080.00816.45
7.3.120.0000.01815.08
7.3.110.0000.01415.02
7.3.100.0030.01314.73
7.3.90.0110.00314.82
7.3.80.0060.00914.56
7.3.70.0060.00914.49
7.3.60.0090.00614.83
7.3.50.0130.00314.84
7.3.40.0060.00614.92
7.3.30.0090.00014.59
7.3.20.0100.00616.88
7.3.10.0090.00416.55
7.3.00.0090.00516.63
7.2.330.0160.00416.21
7.2.320.0070.01016.73
7.2.310.0090.01016.32
7.2.300.0100.00716.64
7.2.290.0100.00716.39
7.2.240.0030.01415.21
7.2.230.0000.01115.15
7.2.220.0060.00915.04
7.2.210.0030.01215.03
7.2.200.0110.00414.93
7.2.190.0070.01015.11
7.2.180.0130.00014.77
7.2.170.0030.01314.72
7.2.160.0030.01014.82
7.2.150.0030.01016.78
7.2.140.0000.01316.79
7.2.130.0030.01316.77
7.2.120.0050.00816.85
7.2.110.0010.00916.94
7.2.100.0020.01116.50
7.2.90.0030.01016.92
7.2.80.0050.01116.95
7.2.70.0070.01017.00
7.2.60.0020.01216.78
7.2.50.0050.01016.90
7.2.40.0030.01116.77
7.2.30.0060.01016.79
7.2.20.0080.00616.86
7.2.10.0060.00816.63
7.2.00.0050.01117.85
7.1.330.0070.01015.64
7.1.320.0070.00715.80
7.1.310.0090.00615.71
7.1.300.0030.00715.63
7.1.290.0100.00615.75
7.1.280.0030.00915.83
7.1.270.0100.00315.89
7.1.260.0070.01015.77
7.1.250.0060.01015.74
7.1.200.0030.01015.79
7.1.100.0040.00817.88
7.1.70.0000.00717.25
7.1.60.0160.00919.40
7.1.50.0070.01416.88
7.1.00.0000.07022.51
7.0.200.0050.00316.89
7.0.140.0030.07021.99
7.0.120.0030.04722.05
7.0.60.0070.04019.90
7.0.50.0170.07317.88
7.0.40.0070.08720.20
7.0.30.0500.07320.12
7.0.20.0170.04020.05
7.0.10.0100.09020.33
7.0.00.0100.06320.18
5.6.280.0000.07721.15
5.6.210.0030.08720.70
5.6.200.0130.07718.18
5.6.190.0030.04320.68
5.6.180.0570.07020.61
5.6.170.0200.06020.58
5.6.160.0070.04020.39
5.6.150.0070.07718.27
5.6.140.0000.05018.21
5.6.130.0130.07318.14
5.6.120.0100.03720.89
5.6.110.0070.09321.03
5.6.100.0030.08321.01
5.6.90.0130.04021.11
5.6.80.0070.07720.40
5.5.350.0230.06320.43
5.5.340.0130.07017.98
5.5.330.0070.06020.43
5.5.320.0230.04720.38
5.5.310.0170.04320.34
5.5.300.0030.04017.95
5.5.290.0170.07017.96
5.5.280.0130.07320.88
5.5.270.0170.07320.62
5.5.260.0000.04720.80
5.5.250.0000.08720.66
5.5.240.0430.03320.07
5.4.450.0470.05725.16
5.4.440.0370.05025.16
5.4.430.0830.05025.16
5.4.420.0530.04325.16
5.4.410.0430.04025.16
5.4.400.0300.02725.16
5.4.390.0600.03025.16
5.4.380.0630.04325.16
5.4.370.0530.04325.16
5.4.360.0530.03325.16
5.4.350.0570.04025.16
5.4.340.0600.04025.16
5.4.320.0630.03325.16
5.4.310.0830.04025.16
5.4.300.0670.03725.16
5.4.290.0800.03725.16
5.4.280.0400.03725.16
5.4.270.0500.03325.16
5.4.260.0570.04025.16
5.4.250.0530.04325.16
5.4.240.0400.03725.16
5.4.230.0600.03325.16
5.4.220.0770.03025.16
5.4.210.0430.04325.16
5.4.200.0800.03325.16
5.4.190.0800.03325.16
5.4.180.0470.03725.16
5.4.170.0270.04025.16
5.4.160.0530.03025.16
5.4.150.0270.04325.16
5.4.140.0170.05325.16
5.4.130.0700.04325.16
5.4.120.0800.03725.16
5.4.110.0330.03725.16
5.4.100.0270.04025.16
5.4.90.0230.04325.16
5.4.80.0300.04725.16
5.4.70.0730.04025.16
5.4.60.0370.03725.16
5.4.50.0700.03025.16
5.4.40.0430.03025.16
5.4.30.0830.03725.16
5.4.20.0500.04025.16
5.4.10.0330.03725.16
5.4.00.0400.02725.16
5.3.290.0700.03025.16
5.3.280.0300.03725.16
5.3.270.0770.03025.16
5.3.260.0370.03725.16
5.3.250.0300.04325.16
5.3.240.0600.04725.16
5.3.230.0730.03725.16
5.3.220.0400.04025.16
5.3.210.0700.02725.16
5.3.200.0530.03725.16
5.3.190.0630.04025.16
5.3.180.0400.04725.16
5.3.170.0730.03025.16
5.3.160.0400.04325.16
5.3.150.0230.04325.16
5.3.140.0870.03325.16
5.3.130.0400.04025.16
5.3.120.0270.03325.16
5.3.110.0400.04025.16
5.3.100.0500.04325.16
5.3.90.0530.03325.16
5.3.80.0470.04025.16
5.3.70.0430.03325.16
5.3.60.0870.03725.16
5.3.50.0700.02725.16
5.3.40.0430.03725.16
5.3.30.0530.03725.16
5.3.20.0600.03325.16
5.3.10.0930.02725.16
5.3.00.0870.03325.16
5.2.170.0530.02725.16
5.2.160.0300.03325.16
5.2.150.0330.03325.16
5.2.140.0570.02025.16
5.2.130.0270.02325.16
5.2.120.0330.03325.16
5.2.110.0400.02725.16
5.2.100.0200.04025.16
5.2.90.0500.04025.16
5.2.80.0530.03025.16
5.2.70.0400.03325.16
5.2.60.0370.03025.16
5.2.50.0270.03025.16
5.2.40.0230.02725.16
5.2.30.0330.03325.16
5.2.20.0330.03025.16
5.2.10.0270.03025.16
5.2.00.0370.03025.16
5.1.60.0130.03025.16
5.1.50.0530.03325.16
5.1.40.0270.02025.16
5.1.30.0200.03025.16
5.1.20.0130.02725.16
5.1.10.0230.02325.16
5.1.00.0300.03025.16
5.0.50.0170.01725.16
5.0.40.0130.01725.16
5.0.30.0130.03025.16
5.0.20.0170.02325.16
5.0.10.0030.02325.16
5.0.00.0170.02325.16
4.4.90.0070.02025.16
4.4.80.0170.01725.16
4.4.70.0200.01725.16
4.4.60.0170.02025.16
4.4.50.0070.01725.16
4.4.40.0230.02325.16
4.4.30.0100.01725.16
4.4.20.0100.02325.16
4.4.10.0100.01325.16
4.4.00.0000.02025.16
4.3.110.0100.01325.16
4.3.100.0030.01025.16
4.3.90.0030.01725.16
4.3.80.0070.02725.16
4.3.70.0200.01325.16
4.3.60.0200.01325.16
4.3.50.0170.01325.16
4.3.40.0100.02725.16
4.3.30.0030.01325.16
4.3.20.0000.02025.16
4.3.10.0030.02025.16
4.3.00.0100.01325.16

preferences:
42.5 ms | 401 KiB | 5 Q