3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $value = 3; function &getValue() { return $this->value; } function test() { $params = array(); $params[] = &$this->getValue(); $params[] = $this->getValue(); return $params; } } $foo = new Foo(); $foo->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.40.0070.00718.67
8.3.30.0100.00618.86
8.3.20.0070.00020.38
8.3.10.0040.00422.13
8.3.00.0040.00420.61
8.2.170.0100.00722.96
8.2.160.0030.01419.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0110.00719.64
8.2.110.0030.00622.04
8.2.100.0080.00418.22
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0060.00318.04
8.2.50.0000.00818.07
8.2.40.0090.00018.27
8.2.30.0000.00818.00
8.2.20.0000.00817.55
8.2.10.0050.00217.68
8.2.00.0030.00717.68
8.1.270.0030.00618.43
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.69
8.1.230.0070.00418.87
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.40
8.1.180.0040.00418.70
8.1.170.0060.00318.66
8.1.160.0080.00022.14
8.1.150.0040.00418.54
8.1.140.0040.00417.39
8.1.130.0000.00717.83
8.1.120.0040.00417.44
8.1.110.0040.00417.28
8.1.100.0070.00017.35
8.1.90.0000.00717.29
8.1.80.0030.00317.40
8.1.70.0070.00017.32
8.1.60.0080.00017.61
8.1.50.0000.00817.42
8.1.40.0040.00417.53
8.1.30.0000.00817.56
8.1.20.0030.00617.64
8.1.10.0060.00317.61
8.1.00.0000.00717.48
8.0.300.0000.00718.77
8.0.290.0000.00717.15
8.0.280.0000.00818.38
8.0.270.0050.00317.16
8.0.260.0030.00316.68
8.0.250.0070.00016.92
8.0.240.0040.00416.83
8.0.230.0050.00216.87
8.0.220.0000.00716.77
8.0.210.0000.00816.70
8.0.200.0030.00316.89
8.0.190.0040.00316.87
8.0.180.0040.00416.88
8.0.170.0000.00716.76
8.0.160.0030.00616.82
8.0.150.0100.00016.67
8.0.140.0000.00716.79
8.0.130.0000.00513.22
8.0.120.0040.00416.77
8.0.110.0030.00616.73
8.0.100.0050.00316.70
8.0.90.0030.00416.86
8.0.80.0060.00916.70
8.0.70.0050.00216.86
8.0.60.0000.00716.86
8.0.50.0000.00716.83
8.0.30.0100.00816.98
8.0.20.0060.01217.40
8.0.10.0040.00416.75
8.0.00.0070.01316.76
7.4.330.0020.00215.00
7.4.320.0000.00616.55
7.4.300.0030.00316.61
7.4.290.0030.00316.60
7.4.280.0030.00516.41
7.4.270.0070.00016.53
7.4.260.0070.00016.54
7.4.250.0000.00816.36
7.4.240.0040.00316.58
7.4.230.0030.00316.70
7.4.220.0070.01116.54
7.4.210.0080.00916.56
7.4.200.0040.00416.63
7.4.190.0000.00716.69
7.4.160.0120.00316.21
7.4.150.0140.00317.40
7.4.140.0070.01317.86
7.4.130.0080.00916.43
7.4.120.0080.01016.40
7.4.110.0100.00716.62
7.4.100.0060.01016.48
7.4.90.0130.00316.45
7.4.80.0060.00919.39
7.4.70.0100.00716.54
7.4.60.0210.02616.55
7.4.50.0040.00416.61
7.4.40.0120.00622.77
7.4.30.0030.01316.29
7.4.10.0070.01314.60
7.4.00.0060.01114.82
7.3.330.0050.00013.14
7.3.320.0000.00513.23
7.3.310.0000.00716.25
7.3.300.0030.00316.36
7.3.290.0100.01016.34
7.3.280.0070.01116.34
7.3.270.0100.00717.40
7.3.260.0040.01516.73
7.3.250.0050.01216.32
7.3.240.0080.01516.28
7.3.230.0060.01016.39
7.3.210.0060.01216.28
7.3.200.0070.01319.39
7.3.190.0140.00716.38
7.3.180.0060.00916.38
7.3.170.0160.00016.61
7.3.160.0100.01016.41
7.3.130.0100.01014.55
7.3.120.0020.01414.90
7.3.110.0030.01314.84
7.3.100.0090.00914.68
7.3.90.0090.00614.80
7.3.80.0120.00014.64
7.3.70.0040.00815.02
7.3.60.0030.01514.84
7.3.50.0110.00414.61
7.3.40.0030.01414.86
7.3.30.0100.00314.80
7.3.20.0030.01216.54
7.3.10.0030.01116.61
7.3.00.0050.00616.54
7.2.330.0130.00616.77
7.2.320.0090.00916.66
7.2.310.0070.01016.29
7.2.300.0060.01116.52
7.2.290.0090.00616.52
7.2.260.0090.00915.28
7.2.250.0160.00315.15
7.2.240.0070.01015.21
7.2.230.0060.00615.04
7.2.220.0110.00715.20
7.2.210.0030.01215.27
7.2.200.0070.00715.02
7.2.190.0080.00814.95
7.2.180.0000.01314.98
7.2.170.0080.00815.02
7.2.160.0070.00414.90
7.2.150.0090.00916.78
7.2.140.0040.00716.87
7.2.130.0110.00316.84
7.2.120.0060.00816.82
7.2.110.0020.01316.93
7.2.100.0060.00816.77
7.2.90.0070.01016.94
7.2.80.0060.00816.81
7.2.70.0030.00916.87
7.2.60.0080.00716.99
7.2.50.0070.00516.89
7.2.40.0030.01016.79
7.2.30.0100.00716.85
7.2.20.0030.01217.02
7.2.10.0050.00916.92
7.2.00.0080.00616.91
7.1.330.0030.01215.77
7.1.320.0110.00415.85
7.1.310.0070.00715.43
7.1.300.0000.01315.75
7.1.290.0080.00415.65
7.1.280.0090.00915.79
7.1.270.0100.00715.51
7.1.260.0040.00815.70
7.1.250.0030.00615.60
7.1.240.0000.01215.89
7.1.230.0000.01715.43
7.1.220.0030.00615.77
7.1.210.0000.01315.56
7.1.200.0030.00915.48
7.1.190.0000.01115.88
7.1.180.0090.00015.54
7.1.170.0040.00415.83
7.1.160.0000.01415.78
7.1.150.0040.01115.49
7.1.140.0070.00715.43
7.1.130.0090.00015.77
7.1.120.0060.00315.67
7.1.110.0120.00015.59
7.1.100.0060.00915.84
7.1.90.0030.00715.75
7.1.80.0040.01115.84
7.1.70.0030.00516.43
7.1.60.0030.00816.42
7.1.50.0100.00516.36
7.1.40.0070.00715.59
7.1.30.0030.01215.39
7.1.20.0140.00015.57
7.1.10.0070.00715.71
7.1.00.0020.04119.03
7.0.330.0110.00415.31
7.0.320.0000.01515.32
7.0.310.0000.01415.39
7.0.300.0060.00615.21
7.0.290.0130.00015.04
7.0.280.0100.00315.42
7.0.270.0030.01015.27
7.0.260.0050.00315.34
7.0.250.0040.00715.38
7.0.240.0030.00815.44
7.0.230.0030.00615.48
7.0.220.0070.00415.39
7.0.210.0070.00315.27
7.0.200.0030.00515.76
7.0.190.0030.01015.44
7.0.180.0110.00415.46
7.0.170.0060.00615.18
7.0.160.0000.01415.41
7.0.150.0070.00715.28
7.0.140.0040.03818.85
7.0.130.0040.01115.39
7.0.120.0090.00315.42
7.0.110.0030.00615.40
7.0.100.0070.00715.05
7.0.90.0070.00715.03
7.0.80.0040.00815.30
7.0.70.0070.00315.19
7.0.60.0080.03317.70
7.0.50.0030.02316.74
7.0.40.0070.04716.91
7.0.30.0150.04016.69
7.0.20.0130.02616.78
7.0.10.0160.02616.79
7.0.00.0050.03516.71
5.6.400.0110.00314.30
5.6.390.0030.01014.41
5.6.380.0080.00814.23
5.6.370.0000.01314.47
5.6.360.0040.00813.97
5.6.350.0040.01114.69
5.6.340.0000.01114.48
5.6.330.0000.01414.29
5.6.320.0000.00914.40
5.6.310.0030.00714.18
5.6.300.0080.00514.55
5.6.290.0080.00814.39
5.6.280.0090.03917.84
5.6.270.0080.00614.41
5.6.260.0060.00914.52
5.6.250.0040.00414.39
5.6.240.0120.00014.41
5.6.230.0040.01214.17
5.6.220.0110.00314.57
5.6.210.0060.02117.62
5.6.200.0060.02316.29
5.6.190.0050.04517.47
5.6.180.1910.02117.51
5.6.170.0170.01717.51
5.6.160.0080.02717.35
5.6.150.0080.02116.16
5.6.140.0040.04816.30
5.6.130.0080.03016.45
5.6.120.0100.04517.79
5.6.110.0090.04317.68
5.6.100.0090.03717.83
5.6.90.0080.02317.76
5.6.80.0070.02117.45
5.6.70.0210.03817.30
5.6.60.0090.00614.41
5.6.50.0030.01314.56
5.6.40.0150.00014.19
5.6.30.0090.00614.57
5.6.20.0070.00714.29
5.6.10.0070.00314.30
5.6.00.0080.00814.25
5.5.380.0030.00914.58
5.5.370.0040.00714.59
5.5.360.0000.01514.58
5.5.350.0070.04517.35
5.5.340.0100.02716.22
5.5.330.0080.02017.56
5.5.320.0140.04217.30
5.5.310.0200.03217.22
5.5.300.0020.02916.21
5.5.290.0070.04116.12
5.5.280.0050.02517.69
5.5.270.0060.03617.63
5.5.260.0110.04517.48
5.5.250.0030.03617.51
5.5.240.0010.02517.25
5.5.230.0000.00914.31
5.5.220.0090.00614.33
5.5.210.0000.01614.37
5.5.200.0140.00014.13
5.5.190.0090.00614.45
5.5.180.0060.01214.46
5.5.170.0000.01214.25
5.5.160.0130.00314.31
5.5.150.0000.01514.16
5.5.140.0040.01214.19
5.5.130.0060.01014.50
5.5.120.0090.00414.09
5.5.110.0040.00814.26
5.5.100.0000.01414.43
5.5.90.0070.00714.32
5.5.80.0060.01014.44
5.5.70.0060.01214.11
5.5.60.0040.01114.41
5.5.50.0030.00714.30
5.5.40.0030.01014.17
5.5.30.0030.00614.20
5.5.20.0070.00714.59
5.5.10.0080.00814.27
5.5.00.0040.01414.19
5.4.450.0310.03615.52
5.4.440.0290.03415.36
5.4.430.0320.03015.25
5.4.420.0320.03715.24
5.4.410.0320.03015.22
5.4.400.0650.03614.81
5.4.390.0640.03014.91
5.4.380.0200.03014.96
5.4.370.0090.03014.73
5.4.360.0110.02414.70
5.4.350.0040.02211.44
5.4.340.0070.01811.53
5.4.330.0000.00811.02
5.4.320.0080.01911.84
5.4.310.0040.02311.76
5.4.300.0080.01911.73
5.4.290.0070.02111.76
5.4.280.0050.02311.67
5.4.270.0050.02011.62
5.4.260.0020.02811.80
5.4.250.0090.02615.14
5.4.240.0070.02815.05
5.4.230.0060.02814.98
5.4.220.0100.02515.00
5.4.210.0150.03314.85
5.4.200.0060.03014.99
5.4.190.0090.03314.84
5.4.180.0100.02814.88
5.4.170.0140.03414.86
5.4.160.0100.02514.99
5.4.150.0100.02614.95
5.4.140.0080.03513.77
5.4.130.0070.03813.67
5.4.120.0050.02813.56
5.4.110.0100.03113.79
5.4.100.0060.02813.71
5.4.90.0070.03213.64
5.4.80.0100.02813.76
5.4.70.0030.03713.87
5.4.60.0100.02513.86
5.4.50.0080.02513.73
5.4.40.0020.03213.68
5.4.30.0030.02913.83
5.4.20.0030.02813.85
5.4.10.0070.02713.73
5.4.00.0080.02813.51
5.3.290.0050.02511.78
5.3.280.0030.03012.55
5.3.270.0050.03312.64
5.3.260.0050.03812.69
5.3.250.0050.02712.63
5.3.240.0130.02212.54
5.3.230.0070.02812.65
5.3.220.0050.02712.60
5.3.210.0070.02812.49
5.3.200.0080.02512.49
5.3.190.0100.02512.57
5.3.180.0080.02512.76
5.3.170.0050.02612.62
5.3.160.0050.02812.66
5.3.150.0100.02712.50
5.3.140.0030.02712.61
5.3.130.0050.03812.68
5.3.120.0050.02912.61
5.3.110.0050.02912.63
5.3.100.0060.02812.44
5.3.90.0050.02812.23
5.3.80.0080.02912.23
5.3.70.0140.01912.10
5.3.60.0020.03312.18
5.3.50.0020.03212.25
5.3.40.0080.03312.31
5.3.30.0050.02712.26
5.3.20.0060.02512.15
5.3.10.0030.02811.97
5.3.00.0120.02212.01
5.2.170.0000.06711.33
5.2.160.0170.05011.20
5.2.150.0100.05711.28
5.2.140.0030.04311.23
5.2.130.0100.03311.19
5.2.120.0100.03311.11
5.2.110.0000.04711.18
5.2.100.0070.03711.07
5.2.90.0070.03711.26
5.2.80.0100.03711.08
5.2.70.0100.03311.31
5.2.60.0130.04711.02
5.2.50.0070.03711.18
5.2.40.0070.04010.82
5.2.30.0030.04311.14
5.2.20.0100.03311.04
5.2.10.0130.03010.85
5.2.00.0070.03710.91
5.1.60.0070.03310.04
5.1.50.0000.03710.09
5.1.40.0030.03310.13
5.1.30.0070.03310.42
5.1.20.0030.04310.53
5.1.10.0070.03010.12
5.1.00.0070.03310.03
5.0.50.0100.0238.64
5.0.40.0070.0238.58
5.0.30.0030.0408.18
5.0.20.0100.0208.39
5.0.10.0030.0278.09
5.0.00.0100.0338.14
4.4.90.0000.0237.20
4.4.80.0030.0237.20
4.4.70.0030.0277.19
4.4.60.0070.0177.19
4.4.50.0070.0177.19
4.4.40.0000.0377.19
4.4.30.0030.0207.19
4.4.20.0070.0177.19
4.4.10.0070.0177.19
4.4.00.0000.0337.19
4.3.110.0070.0177.19
4.3.100.0030.0207.19
4.3.90.0000.0237.19
4.3.80.0030.0337.19
4.3.70.0030.0177.19
4.3.60.0030.0277.19
4.3.50.0070.0177.19
4.3.40.0100.0407.19
4.3.30.0000.0307.19
4.3.20.0030.0237.19
4.3.10.0000.0277.19
4.3.00.0130.0206.62

preferences:
49.81 ms | 400 KiB | 5 Q