3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function __construct(){ $b = new B(); $a = $this; $b->a = function() use($a){ $a->x(); }; $b->callA(); } public function x(){ var_dump('a'); } } class B { public $a; public function callA(){ $this->a(); } } $a = new 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.0130.00816.50
8.3.50.0120.00721.20
8.3.40.0150.00018.82
8.3.30.0070.00719.18
8.3.20.0000.00820.21
8.3.10.0040.00423.66
8.3.00.0070.00320.81
8.2.180.0100.01016.50
8.2.170.0120.00322.96
8.2.160.0130.00020.36
8.2.150.0090.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.48
8.2.110.0050.00520.58
8.2.100.0110.00017.91
8.2.90.0030.00619.13
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00820.07
8.2.30.0050.00318.13
8.2.20.0080.00017.68
8.2.10.0050.00318.03
8.2.00.0080.00019.52
8.1.280.0060.01025.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00622.42
8.1.230.0070.00321.04
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0060.00317.25
8.1.180.0000.00818.10
8.1.170.0080.00018.46
8.1.160.0000.00821.98
8.1.150.0000.00718.54
8.1.140.0070.00017.46
8.1.130.0040.00417.82
8.1.120.0030.00317.36
8.1.110.0000.00817.51
8.1.100.0000.00717.48
8.1.90.0000.00717.37
8.1.80.0040.00317.35
8.1.70.0050.00217.41
8.1.60.0000.00717.56
8.1.50.0080.00017.46
8.1.40.0000.00817.50
8.1.30.0040.00417.64
8.1.20.0060.00317.54
8.1.10.0000.00817.63
8.1.00.0050.00517.48
8.0.300.0070.00020.02
8.0.290.0000.00716.63
8.0.280.0000.00818.32
8.0.270.0070.00017.20
8.0.260.0030.00317.19
8.0.250.0000.00716.96
8.0.240.0030.00317.00
8.0.230.0000.00716.85
8.0.220.0040.00416.86
8.0.210.0030.00316.79
8.0.200.0030.00316.91
8.0.190.0000.00817.00
8.0.180.0030.00616.88
8.0.170.0040.00416.95
8.0.160.0030.00517.01
8.0.150.0030.00616.89
8.0.140.0000.00716.81
8.0.130.0020.00513.27
8.0.120.0080.00016.92
8.0.110.0000.00716.88
8.0.100.0040.00416.77
8.0.90.0040.00416.85
8.0.80.0030.01317.02
8.0.70.0040.00416.75
8.0.60.0050.00217.02
8.0.50.0040.00416.94
8.0.30.0160.00817.11
8.0.20.0180.00217.40
8.0.10.0000.00717.09
8.0.00.0040.01416.73
7.4.330.0030.00315.05
7.4.320.0000.00616.65
7.4.300.0000.00616.59
7.4.290.0030.00316.50
7.4.280.0080.00016.59
7.4.270.0050.00216.63
7.4.260.0040.00416.47
7.4.250.0000.00816.57
7.4.240.0050.00316.57
7.4.230.0070.00016.58
7.4.220.0150.00616.63
7.4.210.0030.01016.48
7.4.200.0030.00316.35
7.4.160.0070.01016.49
7.4.150.0070.01017.40
7.4.140.0130.00317.86
7.4.130.0070.00916.58
7.4.120.0110.00716.50
7.4.110.0110.00616.56
7.4.100.0070.01116.57
7.4.90.0060.01016.52
7.4.80.0130.01119.39
7.4.70.0130.00316.52
7.4.60.0130.01016.60
7.4.50.0030.00616.60
7.4.40.0120.00616.37
7.4.30.0090.00616.62
7.4.00.0040.01215.18
7.3.330.0060.00013.17
7.3.320.0000.00513.17
7.3.310.0000.00716.25
7.3.300.0000.00716.37
7.3.290.0130.00016.32
7.3.280.0130.00616.33
7.3.270.0160.00517.40
7.3.260.0110.01416.37
7.3.250.0120.00716.45
7.3.240.0060.01616.48
7.3.230.0130.00316.48
7.3.210.0030.01416.35
7.3.200.0070.01019.39
7.3.190.0100.00616.44
7.3.180.0080.00716.43
7.3.170.0100.01016.57
7.3.160.0080.00816.41
7.3.120.0080.00414.65
7.2.330.0130.01016.36
7.2.320.0100.00716.54
7.2.310.0100.00716.32
7.2.300.0070.01316.41
7.2.290.0060.01016.45
7.2.80.0190.01116.53
7.2.60.0000.01116.78
7.2.00.0040.00819.35
7.1.200.0170.00715.63
7.1.100.0060.00617.98
7.1.70.0040.00417.09
7.1.60.0090.01619.70
7.1.50.0170.01316.80
7.1.00.0070.07022.43
7.0.200.0060.00316.79
7.0.140.0070.07022.07
7.0.60.0000.05019.86
7.0.50.0030.07017.79
7.0.40.0130.08020.09
7.0.30.0300.06720.33
7.0.20.0270.07720.16
7.0.10.0300.07320.07
7.0.00.0170.07720.19
5.6.280.0030.07321.04
5.6.210.0070.08020.62
5.6.200.0130.04318.20
5.6.190.0070.09020.67
5.6.180.0030.04720.52
5.6.170.0230.04020.43
5.6.160.0100.08320.44
5.6.150.0200.04718.18
5.6.140.0070.04018.24
5.6.130.0100.04018.18
5.6.120.0030.04321.04
5.6.110.0070.06321.11
5.6.100.0130.08021.05
5.6.90.0030.09321.00
5.6.80.0170.07020.54
5.6.70.0200.04020.52
5.5.350.0030.06720.50
5.5.340.0070.07317.99
5.5.330.0100.07020.44
5.5.320.0200.03720.44
5.5.310.0100.04320.24
5.5.300.0230.06018.10
5.5.290.0070.04317.95
5.5.280.0070.05720.81
5.5.270.0000.08320.88
5.5.260.0070.04020.94
5.5.250.0030.05720.48
5.5.240.0070.08320.17
5.4.450.0500.04037.18
5.4.440.0170.04733.66
5.4.430.0330.04033.62
5.4.420.0870.03333.61
5.4.410.0270.04033.59
5.4.400.0300.03031.27
5.4.390.0130.04331.25
5.4.380.0270.04718.68
5.4.370.0200.05318.59
5.4.360.0270.04718.73
5.4.350.0130.06018.75
5.4.340.0130.06018.73
5.4.320.0070.03612.51
5.4.310.0080.04012.51
5.4.300.0080.03412.51
5.4.290.0110.04412.51
5.4.280.0060.03512.41
5.4.270.0070.03612.40
5.4.260.0060.03812.40
5.4.250.0070.03712.40
5.4.240.0080.03412.40
5.4.230.0010.04312.39
5.4.220.0050.04112.39
5.4.210.0100.04312.39
5.4.200.0080.03612.40
5.4.190.0070.04312.39
5.4.180.0120.03112.39
5.4.170.0040.03912.40
5.4.160.0040.03812.40
5.4.150.0070.03612.39
5.4.140.0060.04812.07
5.4.130.0050.03712.07
5.4.120.0060.03612.02
5.4.110.0050.03712.02
5.4.100.0060.03512.02
5.4.90.0070.03612.02
5.4.80.0060.03712.02
5.4.70.0060.03512.02
5.4.60.0070.04112.02
5.4.50.0060.03612.02
5.4.40.0040.03712.00
5.4.30.0080.03712.00
5.4.20.0090.03612.00
5.4.10.0050.04712.00
5.4.00.0070.04111.49
5.3.290.0100.04312.80
5.3.280.0050.03812.70
5.3.270.0030.04212.73
5.3.260.0050.04012.72
5.3.250.0100.03412.71
5.3.240.0080.03512.72
5.3.230.0050.03912.71
5.3.220.0090.03412.68
5.3.210.0070.04512.68
5.3.200.0100.04312.68
5.3.190.0080.03512.68
5.3.180.0060.04712.67
5.3.170.0100.04312.67
5.3.160.0070.03612.67
5.3.150.0030.04012.67
5.3.140.0050.03812.66
5.3.130.0060.03812.66
5.3.120.0090.03512.66
5.3.110.0030.04312.66
5.3.100.0080.04612.13
5.3.90.0060.03612.12
5.3.80.0090.04012.11
5.3.70.0050.04112.11
5.3.60.0090.05012.09
5.3.50.0080.03412.04
5.3.40.0050.03712.04
5.3.30.0100.04612.00
5.3.20.0120.03711.78
5.3.10.0060.03811.74
5.3.00.0050.03711.74
5.2.170.0060.0309.23
5.2.160.0040.0319.22
5.2.150.0060.0299.22
5.2.140.0050.0349.22
5.2.130.0070.0269.18
5.2.120.0050.0289.18
5.2.110.0050.0289.19
5.2.100.0030.0299.18
5.2.90.0030.0309.18
5.2.80.0060.0289.17
5.2.70.0030.0329.17
5.2.60.0050.0349.13
5.2.50.0060.0299.10
5.2.40.0040.0429.07
5.2.30.0060.0349.05
5.2.20.0020.0319.04
5.2.10.0080.0248.95
5.2.00.0040.0408.80
5.1.60.0030.0438.09
5.1.50.0050.0258.09
5.1.40.0070.0238.07
5.1.30.0040.0288.41
5.1.20.0030.0308.45
5.1.10.0050.0268.17
5.1.00.0030.0268.16
5.0.50.0040.0206.65
5.0.40.0020.0216.50
5.0.30.0050.0306.32
5.0.20.0040.0236.28
5.0.10.0020.0216.26
5.0.00.0040.0306.25
4.4.90.0040.0214.77
4.4.80.0030.0204.75
4.4.70.0020.0184.75
4.4.60.0030.0154.75
4.4.50.0090.0214.77
4.4.40.0030.0294.71
4.4.30.0070.0134.76
4.4.20.0020.0164.84
4.4.10.0040.0254.85
4.4.00.0020.0254.76
4.3.110.0050.0134.67
4.3.100.0040.0144.66
4.3.90.0040.0134.64
4.3.80.0050.0224.58
4.3.70.0020.0154.63
4.3.60.0020.0174.63
4.3.50.0030.0154.62
4.3.40.0040.0234.54
4.3.30.0030.0153.30
4.3.20.0020.0163.28
4.3.10.0010.0213.24
4.3.00.0030.01731.24

preferences:
73.91 ms | 401 KiB | 5 Q