3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; public function call($call) { $call->bindTo($this, $this); $call(); } } $a = new A; $a->a = 'Foo'; $a->call(function () { echo $this->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.0100.01018.43
8.3.50.0090.00922.05
8.3.40.0110.00418.84
8.3.30.0070.00718.99
8.3.20.0070.00019.96
8.3.10.0040.00423.49
8.3.00.0080.00019.68
8.2.180.0090.00618.66
8.2.170.0110.00422.96
8.2.160.0150.00320.35
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0050.00321.15
8.2.110.0130.00322.31
8.2.100.0110.00020.59
8.2.90.0040.00419.09
8.2.80.0000.00917.97
8.2.70.0040.00417.47
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0030.00519.95
8.2.30.0040.00418.31
8.2.20.0040.00417.64
8.2.10.0040.00419.75
8.2.00.0090.00017.77
8.1.280.0070.01025.92
8.1.270.0060.00323.87
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00622.09
8.1.230.0090.00319.02
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0080.00017.13
8.1.180.0000.00818.10
8.1.170.0060.00318.55
8.1.160.0040.00421.93
8.1.150.0080.00018.90
8.1.140.0070.00017.37
8.1.130.0040.00417.95
8.1.120.0040.00417.46
8.1.110.0000.00717.40
8.1.100.0020.00517.47
8.1.90.0030.00317.38
8.1.80.0050.00317.42
8.1.70.0040.00417.41
8.1.60.0040.00417.63
8.1.50.0050.00417.57
8.1.40.0000.00817.40
8.1.30.0050.00317.66
8.1.20.0000.00817.56
8.1.10.0040.00417.55
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0030.00317.20
8.0.260.0000.00617.15
8.0.250.0070.00016.98
8.0.240.0000.00716.93
8.0.230.0000.00716.88
8.0.220.0030.00316.94
8.0.210.0030.00316.89
8.0.200.0030.00617.04
8.0.190.0030.00617.09
8.0.180.0060.00316.99
8.0.170.0080.00016.86
8.0.160.0050.00316.95
8.0.150.0060.00316.85
8.0.140.0000.00816.86
8.0.130.0030.00313.31
8.0.120.0000.00816.88
8.0.110.0000.00817.01
8.0.100.0040.00417.07
8.0.90.0000.00816.82
8.0.80.0150.00616.85
8.0.70.0040.00417.00
8.0.60.0030.00516.89
8.0.50.0040.00416.92
8.0.30.0140.00716.95
8.0.20.0100.00817.40
8.0.10.0070.00017.14
8.0.00.0120.01116.75
7.4.330.0000.00515.05
7.4.320.0060.00016.51
7.4.300.0040.00416.64
7.4.290.0000.00716.59
7.4.280.0040.00416.51
7.4.270.0030.00316.52
7.4.260.0080.00316.59
7.4.250.0040.00416.37
7.4.240.0040.00316.58
7.4.230.0030.00316.63
7.4.220.0030.01516.47
7.4.210.0130.00616.55
7.4.200.0040.00416.56
7.4.160.0170.00316.50
7.4.150.0070.01017.40
7.4.140.0120.00917.86
7.4.130.0160.00416.49
7.4.120.0090.00916.60
7.4.110.0110.00916.43
7.4.100.0080.00916.52
7.4.90.0100.00716.59
7.4.80.0270.02919.39
7.4.70.0110.00716.53
7.4.60.0060.01116.60
7.4.50.0000.00416.37
7.4.40.0100.00616.58
7.4.30.0120.00616.69
7.4.00.0070.01015.20
7.3.330.0020.00213.44
7.3.320.0050.00013.23
7.3.310.0070.00016.42
7.3.300.0030.00316.38
7.3.290.0060.00916.38
7.3.280.0040.01316.38
7.3.270.0030.01417.40
7.3.260.0090.00916.51
7.3.250.0080.01316.47
7.3.240.0100.00716.32
7.3.230.0070.01016.39
7.3.210.0110.00616.37
7.3.200.0060.01519.39
7.3.190.0100.01016.41
7.3.180.0000.01516.34
7.3.170.0100.00716.36
7.3.160.0060.01216.39
7.3.120.0000.01514.86
7.3.10.0160.01015.75
7.3.00.0140.01116.54
7.2.330.0170.00016.65
7.2.320.0140.00316.75
7.2.310.0030.00616.87
7.2.300.0060.01116.61
7.2.290.0130.00316.72
7.2.130.0080.00816.55
7.2.120.0170.00716.55
7.2.110.0070.01516.69
7.2.100.0120.00616.94
7.2.90.0100.01316.51
7.2.80.0090.01216.06
7.2.70.0140.00416.34
7.2.60.0110.00516.66
7.2.50.0100.01016.74
7.2.40.0210.00616.58
7.2.30.0210.00016.61
7.2.20.0110.01416.29
7.2.10.0180.00716.16
7.2.00.0070.01017.85
7.1.250.0120.00315.29
7.1.200.0000.00615.88
7.1.70.0000.01017.15
7.1.60.0100.01419.70
7.1.50.0060.01516.72
7.1.00.0000.08022.46
7.0.200.0030.00616.73
7.0.140.0100.06722.21
7.0.60.0070.05019.93
7.0.50.0070.07317.82
7.0.40.0030.04720.33
7.0.30.0270.08320.09
7.0.20.0130.04320.06
7.0.10.0070.09020.19
7.0.00.0170.07320.12
5.6.280.0000.07720.91
5.6.210.0070.07720.75
5.6.200.0230.07018.23
5.6.190.0030.08020.33
5.6.180.0430.03320.58
5.6.170.0100.04720.62
5.6.160.0200.04020.44
5.6.150.0070.06018.25
5.6.140.0000.04018.14
5.6.130.0030.07718.18
5.6.120.0030.06021.01
5.6.110.0100.09020.97
5.6.100.0030.08720.99
5.6.90.0100.07321.00
5.6.80.0100.08020.44
5.5.350.0270.08020.41
5.5.340.0070.07718.07
5.5.330.0070.05320.22
5.5.320.0170.04020.51
5.5.310.0370.07320.30
5.5.300.0030.05718.04
5.5.290.0000.06317.97
5.5.280.0170.07720.80
5.5.270.0030.04320.77
5.5.260.0070.04320.77
5.5.250.0100.07720.69
5.5.240.0030.08020.26
5.4.450.0500.06019.31
5.4.440.0730.06019.47
5.4.430.0900.06319.55
5.4.420.0970.05319.39
5.4.410.0070.05318.95
5.4.400.0400.05318.62
5.4.390.0300.05318.53
5.4.380.0270.04018.62
5.4.370.0070.03718.50
5.4.360.0200.04718.43
5.4.350.0050.03712.03
5.4.340.0040.03712.02
5.4.320.0040.03812.51
5.4.310.0050.05312.51
5.4.300.0070.03712.51
5.4.290.0030.04112.50
5.4.280.0040.03912.39
5.4.270.0050.03812.39
5.4.260.0070.04212.40
5.4.250.0070.04412.40
5.4.240.0060.03412.40
5.4.230.0060.03512.39
5.4.220.0060.03412.39
5.4.210.0020.03912.39
5.4.200.0080.03512.39
5.4.190.0030.03812.39
5.4.180.0060.03512.38
5.4.170.0020.03912.40
5.4.160.0050.03612.40
5.4.150.0070.03412.39
5.4.140.0080.03412.07
5.4.130.0050.03512.06
5.4.120.0080.03212.02
5.4.110.0040.03712.01
5.4.100.0080.03712.02
5.4.90.0050.03912.02
5.4.80.0040.03912.02
5.4.70.0100.03612.01
5.4.60.0040.03812.02
5.4.50.0070.03512.01
5.4.40.0060.03412.00
5.4.30.0070.03512.00
5.4.20.0090.03612.00
5.4.10.0080.03912.00
5.4.00.0070.03411.48
5.3.290.0100.03712.80
5.3.280.0080.03712.71
5.3.270.0060.04612.73
5.3.260.0070.04112.72
5.3.250.0100.03512.71
5.3.240.0080.03512.72
5.3.230.0050.04112.71
5.3.220.0060.03612.68
5.3.210.0080.04212.68
5.3.200.0080.03412.68
5.3.190.0050.03712.68
5.3.180.0070.04112.67
5.3.170.0120.03012.67
5.3.160.0070.03412.68
5.3.150.0070.03512.67
5.3.140.0050.03712.66
5.3.130.0070.03812.66
5.3.120.0060.04012.66
5.3.110.0040.04212.65
5.3.100.0100.03812.13
5.3.90.0050.03612.11
5.3.80.0080.03812.09
5.3.70.0040.03812.10
5.3.60.0050.03812.08
5.3.50.0050.03812.03
5.3.40.0080.03612.04
5.3.30.0070.03211.99
5.3.20.0060.03411.77
5.3.10.0060.03411.73
5.3.00.0050.04311.72
5.2.170.0080.0329.22
5.2.160.0070.0269.23
5.2.150.0080.0429.22
5.2.140.0070.0319.22
5.2.130.0050.0299.18
5.2.120.0050.0299.18
5.2.110.0040.0319.18
5.2.100.0070.0339.18
5.2.90.0080.0299.18
5.2.80.0050.0299.17
5.2.70.0080.0289.17
5.2.60.0020.0329.13
5.2.50.0070.0349.10
5.2.40.0090.0259.08
5.2.30.0070.0369.05
5.2.20.0090.0279.04
5.2.10.0050.0288.94
5.2.00.0050.0288.80
5.1.60.0040.0248.09
5.1.50.0040.0268.09
5.1.40.0050.0238.07
5.1.30.0060.0248.42
5.1.20.0020.0288.44
5.1.10.0040.0278.17
5.1.00.0020.0278.17
5.0.50.0040.0206.64
5.0.40.0040.0196.50
5.0.30.0040.0406.32
5.0.20.0070.0256.28
5.0.10.0020.0226.26
5.0.00.0050.0346.25
4.4.90.0040.0154.78
4.4.80.0040.0144.76
4.4.70.0030.0154.75
4.4.60.0040.0164.75
4.4.50.0030.0154.77
4.4.40.0000.0274.71
4.4.30.0060.0134.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0030.0314.76
4.3.110.0010.0234.66
4.3.100.0030.0144.66
4.3.90.0060.0124.63
4.3.80.0050.0274.59
4.3.70.0030.0164.63
4.3.60.0030.0134.63
4.3.50.0020.0164.63
4.3.40.0010.0254.54
4.3.30.0010.0173.30
4.3.20.0040.0173.28
4.3.10.0020.0163.24
4.3.00.0000.0237.18

preferences:
38.98 ms | 401 KiB | 5 Q