3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'oh yea'; public function foo() { return new class { function bar() { return $this->bar; } }; } } var_dump((new Foo)->foo()->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.0080.01118.56
8.3.60.0040.01116.88
8.3.50.0160.00421.11
8.3.40.0070.00718.59
8.3.30.0120.00318.62
8.3.20.0060.00320.34
8.3.10.0080.00023.51
8.3.00.0060.00319.69
8.2.180.0180.00416.75
8.2.170.0140.00322.96
8.2.160.0100.00720.36
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00317.50
8.2.110.0060.00320.38
8.2.100.0070.00417.72
8.2.90.0040.00419.10
8.2.80.0000.00817.97
8.2.70.0040.00417.36
8.2.60.0040.00417.88
8.2.50.0000.00918.07
8.2.40.0080.00019.46
8.2.30.0070.00018.00
8.2.20.0040.00417.67
8.2.10.0040.00418.01
8.2.00.0020.00518.06
8.1.280.0100.01025.92
8.1.270.0090.01220.20
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0110.01123.91
8.1.230.0040.00822.12
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0060.00317.11
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0040.00422.02
8.1.150.0020.00518.87
8.1.140.0090.00017.32
8.1.130.0070.00017.61
8.1.120.0020.00517.37
8.1.110.0040.00417.29
8.1.100.0040.00417.42
8.1.90.0070.00017.28
8.1.80.0000.00717.42
8.1.70.0050.00217.37
8.1.60.0030.00617.52
8.1.50.0070.00017.35
8.1.40.0030.00517.46
8.1.30.0060.00617.61
8.1.20.0040.00417.57
8.1.10.0030.00717.47
8.1.00.0000.00817.35
8.0.300.0050.00218.77
8.0.290.0060.00316.63
8.0.280.0040.00318.44
8.0.270.0070.00017.23
8.0.260.0030.00317.26
8.0.250.0080.00016.91
8.0.240.0040.00417.07
8.0.230.0030.00616.95
8.0.220.0030.00316.79
8.0.210.0000.00716.85
8.0.200.0060.00016.84
8.0.190.0040.00416.84
8.0.180.0040.00816.84
8.0.170.0050.00316.92
8.0.160.0040.00416.87
8.0.150.0080.00016.78
8.0.140.0070.00016.91
8.0.130.0000.00613.27
8.0.120.0030.00516.74
8.0.110.0040.00416.77
8.0.100.0000.00716.75
8.0.90.0040.00417.00
8.0.80.0100.01016.77
8.0.70.0040.00416.75
8.0.60.0040.00416.95
8.0.50.0050.00316.88
8.0.30.0080.00917.18
8.0.20.0110.01117.40
8.0.10.0000.00817.00
8.0.00.0150.00516.75
7.4.330.0020.00215.08
7.4.320.0030.00316.42
7.4.300.0070.00016.55
7.4.290.0050.00216.50
7.4.280.0000.00716.41
7.4.270.0030.00316.58
7.4.260.0070.00316.41
7.4.250.0080.00016.35
7.4.240.0050.00316.53
7.4.230.0000.00716.51
7.4.220.0130.00916.49
7.4.210.0110.00516.55
7.4.200.0040.00416.63
7.4.160.0090.00616.49
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0110.01216.52
7.4.120.0090.00816.49
7.4.110.0120.00616.37
7.4.100.0090.01216.50
7.4.90.0060.01016.44
7.4.80.0110.00719.39
7.4.70.0110.00716.50
7.4.60.0030.01316.44
7.4.50.0040.00416.47
7.4.40.0030.01516.29
7.4.30.0130.00316.55
7.4.00.0000.00814.97
7.3.330.0000.00513.29
7.3.320.0000.00513.26
7.3.310.0000.00716.33
7.3.300.0000.00716.31
7.3.290.0000.00716.16
7.3.280.0100.00716.32
7.3.270.0070.01017.40
7.3.260.0100.00716.44
7.3.250.0080.01016.25
7.3.240.0130.00316.39
7.3.230.0100.00716.48
7.3.210.0100.00616.30
7.3.200.0120.00916.41
7.3.190.0100.00716.49
7.3.180.0030.01216.43
7.3.170.0130.00316.27
7.3.160.0130.00816.42
7.2.330.0120.00616.46
7.2.320.0090.00916.65
7.2.310.0080.01116.59
7.2.300.0030.01316.49
7.2.290.0030.01516.75
7.2.60.0030.01316.63
7.2.00.0040.00819.50
7.1.200.0040.00415.84
7.1.100.0000.01117.99
7.1.70.0040.00816.97
7.1.60.0070.01819.13
7.1.50.0220.01034.45
7.1.00.0100.07022.40
7.0.200.0030.00316.68
7.0.60.0070.05019.94
7.0.50.0100.07717.86
7.0.40.0070.06720.40
7.0.30.0530.07720.27
7.0.20.0300.06720.11
7.0.10.0030.08720.19
7.0.00.0030.04320.16
5.6.210.0100.08320.67
5.6.200.0000.06718.20
5.6.190.0070.05320.63
5.6.180.3430.04720.42
5.6.170.0300.06320.39
5.6.160.0170.07320.43
5.6.150.0130.07318.16
5.6.140.0100.07718.15
5.6.130.0100.08018.22
5.6.120.0000.04320.99
5.6.110.0200.07021.01
5.6.100.0100.06321.00
5.6.90.0030.08721.01
5.6.80.0100.07320.39
5.6.70.4430.04020.40
5.5.350.0430.06720.38
5.5.340.0070.05718.02
5.5.330.0100.03720.42
5.5.320.0370.07320.30
5.5.310.0300.06320.32
5.5.300.0030.05017.99
5.5.290.0170.07017.97
5.5.280.0070.08020.77
5.5.270.0030.06020.76
5.5.260.0200.07320.61
5.5.250.0030.09020.61
5.5.240.0300.07320.19
5.4.450.0670.06319.39
5.4.440.0870.06019.45
5.4.430.0700.05719.46
5.4.420.1000.07019.38
5.4.410.0600.06319.39
5.4.400.0730.04319.37
5.4.390.0600.05719.14
5.4.380.0700.05018.98
5.4.370.0570.06019.21
5.4.360.0730.05719.27
5.4.350.0770.04718.91
5.4.340.0630.07018.84
5.4.320.0730.05719.14
5.4.310.0700.04019.20
5.4.300.0730.05019.15
5.4.290.0630.05319.01
5.4.280.0600.05319.11
5.4.270.0700.05319.22
5.4.260.0730.05319.16
5.4.250.0770.05719.16
5.4.240.0600.06019.21
5.4.230.0800.04719.24
5.4.220.0570.05319.13
5.4.210.0630.06318.86
5.4.200.0770.06019.14
5.4.190.0530.06319.27
5.4.180.0770.04318.86
5.4.170.0700.05319.13
5.4.160.0830.04018.96
5.4.150.0730.06319.15
5.4.140.0600.06016.41
5.4.130.0800.04716.41
5.4.120.0770.05016.75
5.4.110.0770.05016.52
5.4.100.0770.04316.52
5.4.90.0770.04316.62
5.4.80.0800.05316.57
5.4.70.0230.07316.23
5.4.60.0300.03716.35
5.4.50.0070.07716.52
5.4.40.0030.06316.51
5.4.30.0030.03316.42
5.4.20.0200.03316.52

preferences:
47.72 ms | 401 KiB | 5 Q