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(); } private function x(){ var_dump('a'); } } class B { public $a; public function callA(){ $this->a[0](); } } $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.0070.01418.43
8.3.50.0030.01122.05
8.3.40.0150.00018.77
8.3.30.0140.00319.08
8.3.20.0030.00520.34
8.3.10.0040.00423.50
8.3.00.0100.00019.20
8.2.180.0100.01016.38
8.2.170.0120.00322.96
8.2.160.0130.00020.46
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00319.21
8.2.110.0030.00622.25
8.2.100.0030.00917.84
8.2.90.0040.00417.63
8.2.80.0040.00417.97
8.2.70.0060.00317.77
8.2.60.0080.00018.04
8.2.50.0050.00318.10
8.2.40.0080.00022.15
8.2.30.0030.00518.30
8.2.20.0080.00017.63
8.2.10.0050.00318.13
8.2.00.0000.00819.59
8.1.280.0060.00925.92
8.1.270.0080.00022.09
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.13
8.1.230.0040.00819.16
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0030.00917.22
8.1.190.0030.00617.22
8.1.180.0080.00018.10
8.1.170.0050.00318.48
8.1.160.0070.00022.00
8.1.150.0040.00418.63
8.1.140.0000.00717.32
8.1.130.0000.00817.89
8.1.120.0040.00417.45
8.1.110.0000.00817.36
8.1.100.0070.00017.50
8.1.90.0050.00217.38
8.1.80.0070.00017.45
8.1.70.0040.00417.32
8.1.60.0020.00517.57
8.1.50.0000.00817.56
8.1.40.0070.00017.42
8.1.30.0090.00017.52
8.1.20.0070.00017.63
8.1.10.0000.00717.57
8.1.00.0090.00317.34
8.0.300.0040.00419.65
8.0.290.0040.00416.63
8.0.280.0040.00418.44
8.0.270.0070.00017.24
8.0.260.0030.00317.22
8.0.250.0030.00316.92
8.0.240.0000.00816.97
8.0.230.0040.00416.95
8.0.220.0050.00216.86
8.0.210.0080.00016.90
8.0.200.0000.00616.84
8.0.190.0040.00416.86
8.0.180.0070.00416.84
8.0.170.0080.00016.92
8.0.160.0040.00416.98
8.0.150.0030.00516.83
8.0.140.0040.00416.84
8.0.130.0040.00413.28
8.0.120.0000.00716.80
8.0.110.0040.00416.91
8.0.100.0000.00716.94
8.0.90.0040.00416.71
8.0.80.0120.00316.86
8.0.70.0040.00416.79
8.0.60.0000.00716.71
8.0.50.0000.00716.91
8.0.30.0120.00817.06
8.0.20.0020.01817.40
8.0.10.0040.00416.88
8.0.00.0110.00816.61
7.4.330.0000.00515.16
7.4.320.0040.00416.41
7.4.300.0090.00016.45
7.4.290.0030.00316.63
7.4.280.0040.00416.57
7.4.270.0070.00016.47
7.4.260.0000.00816.48
7.4.250.0070.00016.61
7.4.240.0030.00416.55
7.4.230.0030.00316.33
7.4.220.0060.01016.55
7.4.210.0030.01016.57
7.4.200.0040.00416.40
7.4.160.0030.01316.54
7.4.150.0110.00717.40
7.4.140.0120.00817.86
7.4.130.0080.00816.47
7.4.120.0070.01016.42
7.4.110.0120.00316.48
7.4.100.0120.00616.37
7.4.90.0060.01016.55
7.4.80.0070.01019.39
7.4.70.0060.01016.54
7.4.60.0100.00616.36
7.4.50.0070.00016.54
7.4.40.0060.01016.46
7.4.30.0090.01216.58
7.4.00.0020.01614.84
7.3.330.0050.00013.14
7.3.320.0000.00513.30
7.3.310.0070.00016.19
7.3.300.0070.00016.37
7.3.290.0070.00716.36
7.3.280.0070.01216.33
7.3.270.0120.00417.40
7.3.260.0120.01216.33
7.3.250.0110.00816.48
7.3.240.0090.00616.35
7.3.230.0090.01016.39
7.3.210.0150.00316.49
7.3.200.0100.01319.39
7.3.190.0090.01316.38
7.3.180.0100.00716.41
7.3.170.0060.01516.45
7.3.160.0070.01016.46
7.3.120.0070.01014.92
7.3.110.0000.01314.71
7.3.100.0040.01114.87
7.3.90.0030.01014.68
7.3.80.0070.00714.72
7.3.70.0060.00314.34
7.3.60.0000.01114.51
7.3.50.0070.00314.76
7.3.40.0030.00714.90
7.3.30.0110.00414.47
7.3.20.0030.00916.66
7.3.10.0080.00516.52
7.3.00.0070.00716.54
7.2.330.0120.00916.63
7.2.320.0070.01116.76
7.2.310.0100.00716.75
7.2.300.0060.01116.45
7.2.290.0130.00316.55
7.2.250.0080.01114.91
7.2.240.0070.01314.68
7.2.230.0070.01114.95
7.2.220.0040.00714.90
7.2.210.0000.01214.83
7.2.200.0060.00614.97
7.2.190.0030.00915.05
7.2.180.0060.01014.94
7.2.170.0040.00415.18
7.2.130.0030.01217.11
7.2.120.0030.00616.93
7.2.110.0000.01416.77
7.2.100.0040.00716.96
7.2.90.0090.00316.98
7.2.80.0070.01016.71
7.2.70.0070.01016.70
7.2.60.0030.01016.67
7.2.50.0000.01016.82
7.2.40.0030.01016.64
7.2.30.0000.01416.89
7.2.20.0040.00717.03
7.2.10.0030.01017.02
7.2.00.0090.00616.61
7.1.330.0060.00615.80
7.1.320.0040.01115.57
7.1.310.0040.01115.71
7.1.300.0080.00015.39
7.1.290.0070.00315.73
7.1.280.0060.00615.71
7.1.270.0030.00915.55
7.1.260.0000.01415.73
7.1.250.0040.00815.68
7.1.70.0000.01016.91
7.1.60.0070.01419.70
7.1.50.0100.01016.97
7.1.00.0000.08022.54
7.0.200.0000.00716.88
7.0.140.0000.07022.15
7.0.60.0070.06319.94
7.0.50.0130.07717.84
7.0.40.0070.09020.02
7.0.30.0230.04720.15
7.0.20.0200.04020.05
7.0.10.0170.07320.12
7.0.00.0270.06320.22
5.6.210.0200.06720.72
5.6.200.0030.07318.13
5.6.190.0070.04020.64
5.6.180.4130.04720.64
5.6.170.0200.04020.50
5.6.160.0070.03720.71
5.6.150.0100.03318.16
5.6.140.0070.08018.15
5.6.130.0070.04018.16
5.6.120.0070.08021.03
5.6.110.0130.07321.13
5.6.100.0100.07720.97
5.6.90.0100.08720.99
5.6.80.0170.06720.55
5.6.70.3830.04320.52
5.5.350.0130.07320.39
5.5.340.0070.08718.09
5.5.330.0030.04320.37
5.5.320.0200.03720.34
5.5.310.0130.04720.28
5.5.300.0000.08017.95
5.5.290.0030.08717.95
5.5.280.0070.04020.80
5.5.270.0030.09020.77
5.5.260.0030.04320.88
5.5.250.0070.04320.55
5.5.240.0300.07020.24
5.4.450.0100.04337.18
5.4.440.0400.04033.66
5.4.430.0030.05033.62
5.4.420.0330.04033.61
5.4.410.0200.05031.27
5.4.400.0430.03731.26
5.4.390.0230.04731.25
5.4.380.0170.05718.68
5.4.370.0230.05018.63
5.4.360.0230.05018.71
5.4.350.0300.04718.66
5.4.340.0130.07318.60
5.4.320.0080.03812.51
5.4.310.0060.04812.51
5.4.300.0060.04312.52
5.4.290.0040.03912.51
5.4.280.0080.03712.40
5.4.270.0080.04112.40
5.4.260.0070.04012.41
5.4.250.0040.04212.40
5.4.240.0110.03912.40
5.4.230.0120.03912.39
5.4.220.0080.03412.39
5.4.210.0060.03812.39
5.4.200.0060.03712.40
5.4.190.0030.04012.39
5.4.180.0070.03612.39
5.4.170.0060.03712.40
5.4.160.0050.03712.40
5.4.150.0090.03912.39
5.4.140.0050.03812.08
5.4.130.0060.03512.07
5.4.120.0060.03512.02
5.4.110.0070.03412.02
5.4.100.0100.03212.02
5.4.90.0040.03912.02
5.4.80.0070.03612.02
5.4.70.0060.03612.02
5.4.60.0060.03512.02
5.4.50.0080.04212.02
5.4.40.0060.03412.01
5.4.30.0080.03812.00
5.4.20.0080.03812.00
5.4.10.0060.03412.00
5.4.00.0060.04311.49
5.3.290.0050.04612.80
5.3.280.0070.04212.71
5.3.270.0080.04712.72
5.3.260.0040.04112.72
5.3.250.0040.04012.72
5.3.240.0070.03612.72
5.3.230.0090.03412.71
5.3.220.0090.03312.68
5.3.210.0080.03712.68
5.3.200.0110.03912.68
5.3.190.0070.03712.68
5.3.180.0060.03912.68
5.3.170.0080.05312.67
5.3.160.0080.03612.68
5.3.150.0090.03512.68
5.3.140.0040.03912.66
5.3.130.0050.04212.66
5.3.120.0050.04212.65
5.3.110.0080.03812.66
5.3.100.0070.03712.13
5.3.90.0070.03612.12
5.3.80.0080.03512.10
5.3.70.0050.03712.10
5.3.60.0070.03612.09
5.3.50.0030.03912.04
5.3.40.0070.04212.04
5.3.30.0110.03412.00
5.3.20.0050.03611.78
5.3.10.0030.03711.75
5.3.00.0090.04211.73
5.2.170.0050.0369.22
5.2.160.0020.0329.22
5.2.150.0040.0329.22
5.2.140.0100.0409.22
5.2.130.0050.0339.18
5.2.120.0070.0279.18
5.2.110.0030.0319.19
5.2.100.0030.0299.18
5.2.90.0050.0309.18
5.2.80.0040.0379.17
5.2.70.0070.0369.18
5.2.60.0040.0419.13
5.2.50.0050.0329.10
5.2.40.0040.0329.07
5.2.30.0090.0379.05
5.2.20.0050.0339.04
5.2.10.0080.0308.95
5.2.00.0070.0268.81
5.1.60.0040.0248.09
5.1.50.0040.0268.09
5.1.40.0060.0278.07
5.1.30.0050.0258.41
5.1.20.0050.0268.44
5.1.10.0040.0278.17
5.1.00.0070.0238.16
5.0.50.0020.0226.65
5.0.40.0010.0226.50
5.0.30.0010.0336.32
5.0.20.0060.0176.28
5.0.10.0060.0216.25
5.0.00.0040.0316.25
4.4.90.0020.0164.77
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0040.0154.75
4.4.50.0040.0154.77
4.4.40.0010.0264.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0030.0264.76
4.3.110.0020.0164.67
4.3.100.0000.0174.67
4.3.90.0030.0234.63
4.3.80.0020.0314.58
4.3.70.0040.0194.63
4.3.60.0030.0194.63
4.3.50.0040.0144.63
4.3.40.0040.0254.53
4.3.30.0030.0153.30
4.3.20.0020.0173.28
4.3.10.0040.0143.24
4.3.00.0100.01030.96

preferences:
40.99 ms | 401 KiB | 5 Q