3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $name = 'test'; public function __construct() { var_dump($this, $this->name); call_user_func(function () { var_dump($this, $this->name); call_user_func(function () { var_dump($this, $this->name); }); }); } } $test = new Test();

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.0120.00616.63
8.3.60.0070.01316.50
8.3.50.0220.00616.58
8.3.40.0040.01118.75
8.3.30.0100.00518.79
8.3.20.0120.00318.55
8.3.10.0080.00020.53
8.3.00.0060.00319.26
8.2.180.0110.01116.75
8.2.170.0110.00422.96
8.2.160.0130.00720.86
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00220.93
8.2.110.0060.00621.00
8.2.100.0120.00017.72
8.2.90.0060.00319.05
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0030.00618.04
8.2.50.0060.00618.07
8.2.40.0040.00417.91
8.2.30.0000.00917.98
8.2.20.0080.00017.72
8.2.10.0030.00617.70
8.2.00.0000.00717.69
8.1.280.0110.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00621.31
8.1.230.0090.00317.52
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0100.00017.36
8.1.190.0000.00917.36
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0040.00418.96
8.1.150.0000.00718.64
8.1.140.0080.00017.54
8.1.130.0040.00417.89
8.1.120.0040.00417.38
8.1.110.0080.00017.49
8.1.100.0040.00317.42
8.1.90.0050.00217.46
8.1.80.0040.00417.37
8.1.70.0000.00717.41
8.1.60.0000.00817.62
8.1.50.0060.00317.43
8.1.40.0040.00417.41
8.1.30.0000.00717.63
8.1.20.0000.00717.59
8.1.10.0050.00517.47
8.1.00.0030.00517.45
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0070.00017.09
8.0.260.0060.00016.79
8.0.250.0000.00816.92
8.0.240.0080.00016.92
8.0.230.0000.00616.88
8.0.220.0040.00416.91
8.0.210.0040.00416.86
8.0.200.0000.00716.97
8.0.190.0070.00016.92
8.0.180.0060.00316.88
8.0.170.0060.00316.80
8.0.160.0080.00016.95
8.0.150.0040.00416.88
8.0.140.0080.00016.70
8.0.130.0030.00313.35
8.0.120.0070.00016.89
8.0.110.0030.00316.99
8.0.100.0040.00416.75
8.0.90.0050.00316.74
8.0.80.0000.01416.93
8.0.70.0040.00416.94
8.0.60.0040.00416.86
8.0.50.0040.00416.83
8.0.30.0070.01217.09
8.0.20.0090.01017.12
8.0.10.0020.00516.95
8.0.00.0110.01116.60
7.4.330.0020.00212.96
7.4.320.0060.00316.56
7.4.300.0000.00716.64
7.4.290.0030.00316.61
7.4.280.0040.00716.59
7.4.270.0080.00016.59
7.4.260.0030.00313.20
7.4.250.0030.00616.63
7.4.240.0070.00016.60
7.4.230.0050.00316.67
7.4.220.0060.01216.49
7.4.210.0090.00716.50
7.4.200.0030.00316.48
7.4.190.0000.00716.31
7.4.160.0040.01316.54
7.4.150.0070.01016.39
7.4.140.0080.01016.53
7.4.130.0100.01016.64
7.4.120.0100.01216.57
7.4.110.0080.01116.39
7.4.100.0080.01116.35
7.4.90.0100.00716.50
7.4.80.0130.01019.39
7.4.70.0070.01316.41
7.4.60.0180.00316.43
7.4.50.0110.00016.40
7.4.40.0030.01316.23
7.4.30.0080.00816.50
7.4.00.0070.01014.97
7.3.330.0060.00013.31
7.3.320.0030.00313.08
7.3.310.0000.00716.33
7.3.300.0040.00416.31
7.3.290.0070.00716.28
7.3.280.0100.00716.30
7.3.270.0100.00716.26
7.3.260.0100.00716.21
7.3.250.0150.00716.31
7.3.240.0090.01516.21
7.3.230.0140.00316.46
7.3.210.0120.00916.55
7.3.200.0090.00916.50
7.3.190.0130.00416.41
7.3.180.0150.00416.29
7.3.170.0100.00716.60
7.3.160.0060.01016.15
7.3.120.0090.00614.97
7.3.10.0220.00816.20
7.3.00.0200.01016.36
7.2.330.0110.01116.55
7.2.320.0060.01616.71
7.2.310.0110.01916.52
7.2.300.0080.00816.77
7.2.290.0100.00716.51
7.2.130.0210.00816.69
7.2.120.0180.00416.35
7.2.110.0140.00616.15
7.2.100.0160.00316.32
7.2.90.0090.00616.30
7.2.80.0090.00916.36
7.2.70.0070.01116.52
7.2.60.0100.01016.11
7.2.50.0140.00716.57
7.2.40.0140.00716.43
7.2.30.0130.00316.92
7.2.20.0140.00416.16
7.2.10.0000.01316.38
7.2.00.0060.00918.12
7.1.250.0080.01215.53
7.1.100.0030.01018.07
7.1.70.0080.00416.94
7.1.60.0100.01419.40
7.1.50.0090.01217.00
7.1.00.0070.05322.41
7.0.200.0030.00716.66
7.0.140.0070.07021.96
7.0.120.0070.07022.24
7.0.60.0030.04019.86
7.0.50.0030.08317.82
7.0.40.0100.06020.14
7.0.30.0370.07020.33
7.0.20.0300.06320.12
7.0.10.0070.04320.19
7.0.00.0100.07020.09
5.6.280.0000.07320.79
5.6.210.0170.07320.54
5.6.200.0100.04318.27
5.6.190.0100.08320.50
5.6.180.0330.06020.66
5.6.170.0300.07720.44
5.6.160.0000.04320.54
5.6.150.0100.05718.18
5.6.140.0100.03718.15
5.6.130.0170.07318.17
5.6.120.0100.08321.03
5.6.110.0070.08320.91
5.6.100.0030.07721.05
5.6.90.0000.04320.89
5.6.80.0130.07320.52
5.5.350.0170.07320.40
5.5.340.0100.06718.04
5.5.330.0200.06020.45
5.5.320.0430.06020.21
5.5.310.0230.08020.30
5.5.300.0070.07017.95
5.5.290.0070.07718.08
5.5.280.0030.09020.90
5.5.270.0070.04320.84
5.5.260.0070.05020.89
5.5.250.0130.06320.70
5.5.240.0000.03720.24
5.4.450.0130.07319.57
5.4.440.0070.07719.18
5.4.430.0030.04719.44
5.4.420.0100.07319.19
5.4.410.0070.06719.28
5.4.400.0070.05018.96
5.4.390.0070.05319.01
5.4.380.0070.08019.24
5.4.370.0170.06718.88
5.4.360.0100.04318.85
5.4.350.0030.03718.85
5.4.340.0000.07719.08
5.4.320.0100.04719.16
5.4.310.0030.07719.16
5.4.300.0100.07318.86
5.4.290.0030.05319.15
5.4.280.0030.05319.14
5.4.270.0030.05719.15
5.4.260.0070.03718.84
5.4.250.0070.03718.88
5.4.240.0030.04018.86
5.4.230.0000.04019.00
5.4.220.0070.03718.91
5.4.210.0170.05018.85
5.4.200.0070.03719.23
5.4.190.0030.08318.91
5.4.180.0170.04719.23
5.4.170.0070.07018.96
5.4.160.0130.04318.82
5.4.150.0070.04019.06
5.4.140.0030.04016.55
5.4.130.0070.04716.39
5.4.120.0070.04316.42
5.4.110.0100.04316.42
5.4.100.0100.06016.50
5.4.90.0100.07016.46
5.4.80.0030.05016.37
5.4.70.0070.04716.52
5.4.60.0030.07316.38
5.4.50.0070.07716.43
5.4.40.0030.03716.37
5.4.30.0130.04016.64
5.4.20.0070.03316.33
5.4.10.0000.08016.64
5.4.00.0100.04015.84
5.3.290.0070.07314.71
5.3.280.0030.05314.61
5.3.270.0000.08014.64
5.3.260.0000.08314.64
5.3.250.0030.04014.61
5.3.240.0130.07314.76
5.3.230.0100.07314.53
5.3.220.0100.05714.59
5.3.210.0030.08314.72
5.3.200.0000.08714.60
5.3.190.0100.05314.63
5.3.180.0030.04714.62
5.3.170.0100.07314.46
5.3.160.0100.07314.58
5.3.150.0070.05314.64
5.3.140.0030.05314.49
5.3.130.0030.04314.47
5.3.120.0030.04014.55
5.3.110.0000.04014.63
5.3.40.0070.05013.88
5.3.30.0070.06013.93
5.3.20.0130.06313.76
5.3.10.0000.04013.80
5.3.00.0070.05713.54
5.2.170.0070.05011.07
5.2.160.0100.05311.09
5.2.150.0000.06011.18
5.2.140.0030.06011.09
5.2.130.0100.05311.14
5.2.120.0030.06311.27
5.2.110.0070.05711.25
5.2.100.0000.03711.08
5.2.90.0030.05311.14
5.2.80.0030.04011.13
5.2.70.0030.03311.25
5.2.60.0070.06011.09
5.2.50.0070.03710.91
5.2.40.0030.03711.05
5.2.30.0000.03710.97
5.2.20.0000.06311.04
5.2.10.0070.06010.86
5.2.00.0070.05710.68
5.1.60.0000.06010.04
5.1.50.0030.0339.90
5.1.40.0030.0379.95
5.1.30.0030.06710.30
5.1.20.0100.04310.52
5.1.10.0030.05710.23
5.1.00.0000.04310.08
5.0.50.0000.0278.57
5.0.40.0030.0438.57
5.0.30.0030.0638.57
5.0.20.0000.0378.57
5.0.10.0000.0208.57
5.0.00.0030.0678.57
4.4.90.0070.0338.57
4.4.80.0100.0278.57
4.4.70.0070.0238.57
4.4.60.0030.0178.57
4.4.50.0000.0208.57
4.4.40.0000.0478.57
4.4.30.0030.0278.57
4.4.20.0000.0208.57
4.4.10.0000.0208.57
4.4.00.0000.0508.57
4.3.110.0000.0308.57
4.3.100.0030.0338.57
4.3.90.0100.0278.57
4.3.80.0030.0378.57
4.3.70.0000.0378.57
4.3.60.0030.0238.57
4.3.50.0030.0338.57
4.3.40.0030.0538.57
4.3.30.0000.0408.57
4.3.20.0000.0308.57
4.3.10.0000.0408.57
4.3.00.0000.0308.57

preferences:
47.08 ms | 401 KiB | 5 Q