3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $params = array(); public $testValue = 6; function test() { $this->params[] = &$this->testValue; var_dump($this->params); } function test2() { var_dump($this->params); } } $foo = new Foo(); $foo->test(); $foo->test2();

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.0040.01118.56
8.3.50.0100.00721.08
8.3.40.0150.00418.73
8.3.30.0070.00718.96
8.3.20.0050.00320.29
8.3.10.0040.00421.80
8.3.00.0080.00022.57
8.2.180.0090.00916.75
8.2.170.0070.00722.96
8.2.160.0070.00718.93
8.2.150.0040.00424.18
8.2.140.0110.00724.66
8.2.130.0100.00626.16
8.2.120.0040.00419.64
8.2.110.0090.00020.52
8.2.100.0030.00917.91
8.2.90.0090.00019.04
8.2.80.0000.00817.97
8.2.70.0080.00017.62
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0040.00420.36
8.2.30.0030.00617.94
8.2.20.0060.00317.70
8.2.10.0040.00417.70
8.2.00.0030.00617.73
8.1.280.0040.01125.92
8.1.270.0040.00418.32
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00620.97
8.1.230.0110.00017.83
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0110.00017.23
8.1.180.0030.00618.10
8.1.170.0040.00418.43
8.1.160.0000.00722.14
8.1.150.0070.00018.58
8.1.140.0000.00717.35
8.1.130.0030.00317.78
8.1.120.0030.00317.30
8.1.110.0060.00317.35
8.1.100.0070.00017.43
8.1.90.0050.00217.40
8.1.80.0040.00417.43
8.1.70.0050.00317.33
8.1.60.0080.00017.50
8.1.50.0040.00417.55
8.1.40.0000.00817.43
8.1.30.0040.00417.65
8.1.20.0030.00517.57
8.1.10.0040.00417.59
8.1.00.0070.00317.49
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.39
8.0.270.0040.00417.20
8.0.260.0000.00716.76
8.0.250.0070.00016.86
8.0.240.0040.00416.94
8.0.230.0000.00716.92
8.0.220.0000.00816.88
8.0.210.0030.00316.83
8.0.200.0040.00416.91
8.0.190.0040.00416.75
8.0.180.0050.00216.77
8.0.170.0040.00416.82
8.0.160.0070.00016.65
8.0.150.0080.00016.67
8.0.140.0040.00416.71
8.0.130.0050.00013.25
8.0.120.0080.00016.80
8.0.110.0070.00016.84
8.0.100.0040.00416.79
8.0.90.0070.00016.87
8.0.80.0040.01116.81
8.0.70.0040.00416.82
8.0.60.0040.00416.62
8.0.50.0000.00816.65
8.0.30.0100.00816.99
8.0.20.0130.00617.41
8.0.10.0030.00517.02
8.0.00.0100.00916.81
7.4.330.0050.00015.00
7.4.320.0000.00716.43
7.4.300.0000.00616.63
7.4.290.0070.00016.46
7.4.280.0000.01016.64
7.4.270.0030.00316.56
7.4.260.0000.00716.52
7.4.250.0000.00916.46
7.4.240.0050.00216.49
7.4.230.0000.00716.42
7.4.220.0130.00616.56
7.4.210.0070.00816.59
7.4.200.0040.00416.69
7.4.190.0060.00316.52
7.4.160.0040.01216.52
7.4.150.0120.00617.40
7.4.140.0130.00717.86
7.4.130.0090.00916.38
7.4.120.0130.00316.34
7.4.110.0100.01016.22
7.4.100.0070.01116.33
7.4.90.0090.00916.57
7.4.80.0090.01319.39
7.4.70.0090.01216.43
7.4.60.0130.00616.48
7.4.50.0000.00816.31
7.4.40.0000.01222.77
7.4.30.0130.00616.57
7.4.00.0140.00315.02
7.3.330.0000.00513.25
7.3.320.0030.00313.37
7.3.310.0040.00416.33
7.3.300.0030.00316.32
7.3.290.0090.00616.29
7.3.280.0110.00416.28
7.3.270.0080.00817.40
7.3.260.0110.00616.47
7.3.250.0070.00916.28
7.3.240.0200.00016.17
7.3.230.0090.01516.39
7.3.210.0060.01316.30
7.3.200.0030.01316.31
7.3.190.0090.00616.59
7.3.180.0110.01116.20
7.3.170.0070.01316.50
7.3.160.0120.00416.37
7.3.120.0080.00014.60
7.2.330.0140.00316.58
7.2.320.0160.00416.62
7.2.310.0060.01616.22
7.2.300.0130.00316.34
7.2.290.0130.00316.38
7.2.60.0090.00916.57
7.2.00.0060.00919.27
7.1.200.0090.00315.71
7.1.100.0030.00918.14
7.1.70.0040.00417.02
7.1.60.0070.01719.82
7.1.50.0070.01316.98
7.1.00.0030.08022.47
7.0.200.0270.00614.79
7.0.140.0070.06721.92
7.0.110.0000.05320.06
7.0.100.0030.06019.88
7.0.90.0070.05719.95
7.0.80.0030.08319.93
7.0.70.0500.03720.00
7.0.60.0530.08020.04
7.0.50.0570.07019.93
7.0.40.0030.06719.88
7.0.30.0030.06319.68
7.0.20.0100.04019.70
7.0.10.0000.04719.73
7.0.00.0000.04019.65
5.6.280.0070.07021.03
5.6.260.0100.03020.70
5.6.250.0030.07320.74
5.6.240.0030.03720.71
5.6.230.0130.08320.64
5.6.220.0000.04320.53
5.6.210.0030.03720.71
5.6.200.0070.05720.62
5.6.190.0070.03720.65
5.6.180.0070.04320.62
5.6.170.0030.04720.64
5.6.160.0030.04720.71
5.6.150.0030.04320.66
5.6.140.0030.04320.59
5.6.130.0130.03020.52
5.6.120.0070.03720.61
5.6.110.0070.04020.85
5.6.100.0170.04320.60
5.6.90.0070.04320.59
5.6.80.0030.04019.95
5.6.70.0130.03019.99
5.6.60.0070.03320.04
5.6.50.0070.03020.07
5.6.40.0030.03319.95
5.6.30.0030.03719.92
5.6.20.0100.03019.91
5.6.10.0030.06020.01
5.6.00.0030.03320.00
5.5.380.0000.04717.68
5.5.370.0000.05717.61
5.5.360.0100.05717.69
5.5.350.0030.03717.62
5.5.340.0070.08018.23
5.5.330.0100.02718.09
5.5.320.0000.04718.05
5.5.310.0070.04018.13
5.5.300.0000.04018.12
5.5.290.0000.05717.91
5.5.280.0070.03717.91
5.5.270.0030.04018.07
5.5.260.0100.04718.08
5.5.250.0030.04317.93
5.5.240.0000.04017.51
5.5.230.0070.03717.21
5.5.220.0070.03317.30
5.5.210.0170.02017.45
5.5.200.0070.03017.18
5.5.190.0100.04017.45
5.5.180.0030.03317.47
5.5.160.0070.05717.50
5.5.150.0030.04717.44
5.5.140.0070.03317.25
5.5.130.0100.03017.26
5.5.120.0000.04017.27
5.5.110.0030.04017.57
5.5.100.0030.04317.21
5.5.90.0000.04317.18
5.5.80.0030.04017.18
5.5.70.0030.04017.17
5.5.60.0000.03717.07
5.5.50.0070.03317.47
5.5.40.0030.03317.37
5.5.30.0100.02717.48
5.5.20.0000.05017.31
5.5.10.0030.05017.14
5.5.00.0070.09017.19
5.4.450.0030.04319.46
5.4.440.0070.04319.59
5.4.430.0000.04319.50
5.4.420.0030.04019.30
5.4.410.0100.03719.53
5.4.400.0130.02719.34
5.4.390.0000.04719.16
5.4.380.0000.04718.99
5.4.370.0030.03019.20
5.4.360.0030.03019.03
5.4.350.0000.04018.98
5.4.340.0070.03019.02
5.4.320.0100.03019.01
5.4.310.0000.04019.24
5.4.300.0100.03319.00
5.4.290.0070.03018.95
5.4.280.0030.04719.26
5.4.270.0030.03019.02
5.4.260.0030.04019.31
5.4.250.0000.04319.13
5.4.240.0130.03019.22
5.4.230.0130.04318.98
5.4.220.0000.05019.02
5.4.210.0030.04018.94
5.4.200.0030.05719.21
5.4.190.0030.07319.13
5.4.180.0030.03719.15
5.4.170.0070.05319.00
5.4.160.0070.03319.14
5.4.150.0030.03719.29
5.4.140.0070.03316.38
5.4.130.0070.02716.33
5.4.120.0030.03316.46
5.4.110.0030.04016.56
5.4.100.0070.04716.57
5.4.90.0070.03316.36
5.4.80.0070.03316.45
5.4.70.0000.04016.40
5.4.60.0100.02716.63
5.4.50.0000.03316.45
5.4.40.0000.04016.45
5.4.30.0100.03016.55
5.4.20.0000.03716.44
5.4.10.0030.03716.38
5.4.00.0030.03015.88
5.3.290.0000.04714.90
5.3.280.0030.03714.63
5.3.270.0000.05014.62
5.3.260.0030.05014.56
5.3.250.0000.04314.83
5.3.240.0000.04314.75
5.3.230.0030.03714.68
5.3.220.0100.02714.59
5.3.210.0070.02714.57
5.3.200.0070.03014.54
5.3.190.0070.03014.57
5.3.180.0000.04014.57
5.3.170.0030.03714.79
5.3.160.0170.02714.56
5.3.150.0000.04014.70
5.3.140.0070.03014.68
5.3.130.0000.04314.55
5.3.120.0100.03314.77
5.3.110.0030.03314.40
5.3.100.0030.03014.17
5.3.90.0030.04014.11
5.3.80.0000.04014.24
5.3.70.0030.03314.16
5.3.60.0030.03314.03
5.3.50.0030.03013.95
5.3.40.0070.02713.98
5.3.30.0000.03313.87
5.3.20.0000.03013.77
5.3.10.0070.02313.67
5.3.00.0030.03013.87
5.2.170.0070.02012.35
5.2.160.0070.02012.35
5.2.150.0070.02012.35
5.2.140.0000.02712.35
5.2.130.0000.02712.35
5.2.120.0030.02312.35
5.2.110.0030.02312.35
5.2.100.0000.03012.35
5.2.90.0030.02312.35
5.2.80.0000.02712.35
5.2.70.0030.02712.35
5.2.60.0000.02712.35
5.2.50.0000.02712.35
5.2.40.0030.02312.35
5.2.30.0000.02712.35
5.2.20.0030.02312.35
5.2.10.0000.02712.35
5.2.00.0100.01712.35
5.1.60.0000.02312.35
5.1.50.0000.02312.35
5.1.40.0000.02012.35
5.1.30.0000.02712.35
5.1.20.0070.02012.35
5.1.10.0030.02012.35
5.1.00.0070.02012.35
5.0.50.0000.02012.35
5.0.40.0030.01312.35
5.0.30.0000.03012.35
5.0.20.0030.01712.35
5.0.10.0000.01712.35
5.0.00.0030.02312.35
4.4.90.0000.01312.35
4.4.80.0000.01312.35
4.4.70.0000.01712.35
4.4.60.0000.01312.35
4.4.50.0000.01312.35
4.4.40.0070.01312.35
4.4.30.0000.01312.35
4.4.20.0030.01012.35
4.4.10.0000.01312.35
4.4.00.0000.02012.35
4.3.110.0000.01312.35
4.3.100.0030.01312.35
4.3.90.0030.01012.35
4.3.80.0000.02012.35
4.3.70.0030.01012.35
4.3.60.0030.01012.35
4.3.50.0000.01712.35
4.3.40.0000.02012.35
4.3.30.0000.01312.35
4.3.20.0000.01312.35
4.3.10.0000.01312.35
4.3.00.0030.01012.35

preferences:
41.66 ms | 401 KiB | 5 Q