3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Value { protected $value; public function __construct($value) { $this->value = $value; } public function getValue() { return $this->value; } } $three = new Value(3); $four = new Value(4); $closure = static function ($delta) { var_dump($this->getValue() + $delta); }; $closure->call($three, 4); $closure->call($four, 4);

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.01016.63
8.3.50.0100.01222.00
8.3.40.0090.00618.71
8.3.30.0110.00418.84
8.3.20.0040.00420.34
8.3.10.0080.00023.53
8.3.00.0040.00421.85
8.2.180.0070.01016.63
8.2.170.0090.00622.96
8.2.160.0130.00020.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00321.00
8.2.120.0030.00526.35
8.2.110.0000.00819.37
8.2.100.0090.00318.03
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0090.00017.35
8.2.60.0030.00618.03
8.2.50.0000.00818.09
8.2.40.0090.00020.48
8.2.30.0000.00719.52
8.2.20.0040.00417.71
8.2.10.0050.00318.12
8.2.00.0040.00418.07
8.1.280.0060.01325.92
8.1.270.0080.00024.02
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0100.00722.55
8.1.230.0070.00417.82
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0070.00318.45
8.1.160.0080.00020.78
8.1.150.0050.00319.09
8.1.140.0000.00819.60
8.1.130.0000.00717.47
8.1.120.0070.00017.53
8.1.110.0040.00417.38
8.1.100.0040.00417.53
8.1.90.0000.00717.51
8.1.80.0040.00417.46
8.1.70.0000.00717.42
8.1.60.0020.00517.60
8.1.50.0040.00417.59
8.1.40.0080.00317.49
8.1.30.0000.00817.63
8.1.20.0070.00017.48
8.1.10.0000.00717.58
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.29
8.0.270.0070.00017.14
8.0.260.0060.00016.90
8.0.250.0030.00316.91
8.0.240.0000.00716.93
8.0.230.0020.00517.04
8.0.220.0000.00716.89
8.0.210.0030.00316.84
8.0.200.0030.00317.00
8.0.190.0020.00516.92
8.0.180.0040.00717.02
8.0.170.0030.00517.08
8.0.160.0040.00716.96
8.0.150.0070.00316.90
8.0.140.0020.00916.83
8.0.130.0030.00613.44
8.0.120.0030.00516.84
8.0.110.0070.00016.87
8.0.100.0000.00816.94
8.0.90.0030.00516.93
8.0.80.0120.00616.94
8.0.70.0050.00216.84
8.0.60.0090.00016.93
8.0.50.0040.00416.85
8.0.30.0090.01317.01
8.0.20.0120.01217.40
8.0.10.0030.00516.91
8.0.00.0110.00616.80
7.4.330.0000.00516.66
7.4.320.0030.00516.62
7.4.300.0050.00216.52
7.4.290.0070.00416.63
7.4.280.0040.00416.59
7.4.270.0050.00316.54
7.4.260.0040.00416.61
7.4.250.0000.00816.58
7.4.240.0050.00316.63
7.4.230.0030.00316.40
7.4.220.0120.00616.63
7.4.210.0150.00216.58
7.4.200.0000.00716.52
7.4.160.0090.00616.61
7.4.150.0090.00917.40
7.4.140.0160.00617.86
7.4.130.0050.01416.59
7.4.120.0120.00516.55
7.4.110.0110.00716.29
7.4.100.0060.00916.45
7.4.90.0100.00716.65
7.4.80.0100.01319.39
7.4.70.0090.00616.63
7.4.60.0060.00916.43
7.4.50.0040.01116.50
7.4.40.0060.01016.52
7.4.30.0080.01116.64
7.4.00.0000.01614.70
7.3.330.0000.00513.44
7.3.320.0000.00613.36
7.3.310.0030.00316.39
7.3.300.0050.00216.31
7.3.290.0030.00316.32
7.3.280.0080.00816.34
7.3.270.0150.01317.40
7.3.260.0160.00816.35
7.3.250.0080.01316.46
7.3.240.0150.00416.53
7.3.230.0060.01216.39
7.3.210.0170.00716.39
7.3.200.0100.01319.39
7.3.190.0100.00716.33
7.3.180.0180.00616.23
7.3.170.0130.00316.39
7.3.160.0060.01016.46
7.3.10.0070.00716.63
7.3.00.0080.00416.73
7.2.330.0080.00816.67
7.2.320.0030.01416.39
7.2.310.0050.01816.64
7.2.300.0100.00716.51
7.2.290.0070.01416.30
7.2.130.0030.01016.53
7.2.120.0070.00716.88
7.2.110.0060.00916.63
7.2.100.0000.01216.55
7.2.90.0120.00316.86
7.2.80.0000.01016.90
7.2.70.0070.00317.05
7.2.60.0040.01016.75
7.2.50.0070.00716.66
7.2.40.0000.00816.99
7.2.30.0090.00616.91
7.2.20.0000.01417.04
7.2.10.0000.01516.95
7.2.00.0020.01318.13
7.1.250.0040.00715.80
7.1.200.0040.01115.93
7.1.100.0030.00918.38
7.1.70.0040.01217.15
7.1.60.0070.01819.40
7.1.50.0040.01917.02
7.1.00.0030.07722.36
7.0.200.0570.00714.56
7.0.60.0200.08321.65
7.0.50.0130.07317.88
7.0.40.0070.09320.24
7.0.30.0300.07720.12
7.0.20.0300.08020.16
7.0.10.0070.08720.33
7.0.00.0030.07020.10
5.6.280.0000.04021.00
5.6.210.0130.04320.54
5.6.200.0100.07318.25
5.6.190.0100.08320.47
5.6.180.0130.04720.61
5.6.170.0170.04020.44
5.6.160.0030.04020.45
5.6.150.0100.08018.29
5.6.140.0200.06018.27
5.6.130.0070.04718.29
5.6.120.0130.07721.12
5.6.110.0000.05020.97
5.6.100.0130.08021.03
5.6.90.0100.06721.11
5.6.80.0170.06720.51
5.5.350.0000.08320.53
5.5.340.0000.05317.98
5.5.330.0000.04720.28
5.5.320.0400.04020.29
5.5.310.0270.08320.28
5.5.300.0030.03717.94
5.5.290.0030.08718.03
5.5.280.0100.07720.96
5.5.270.0070.06720.77
5.5.260.0030.09020.90
5.5.250.0100.07720.70
5.5.240.0330.06720.22

preferences:
47.78 ms | 401 KiB | 5 Q