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 = function ($delta) { var_dump($delta); }; //$a = new closure(); $closure(4); $closure->call($three, 4, 3, 5); $closure->call($four, 4, 2 , 1); ?>

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.0060.00916.38
8.3.50.0110.00821.98
8.3.40.0090.00618.82
8.3.30.0150.00318.89
8.3.20.0080.00020.38
8.3.10.0040.00420.53
8.3.00.0060.00623.64
8.2.180.0110.00716.63
8.2.170.0090.00622.96
8.2.160.0100.00319.29
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00420.64
8.2.120.0040.00426.35
8.2.110.0100.00022.24
8.2.100.0090.00318.04
8.2.90.0060.00319.08
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00717.80
8.2.50.0090.00018.09
8.2.40.0040.00422.13
8.2.30.0040.00419.48
8.2.20.0070.00017.69
8.2.10.0040.00418.10
8.2.00.0040.00418.12
8.1.280.0150.00325.92
8.1.270.0120.00622.11
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0090.00023.98
8.1.230.0070.00317.76
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0070.00317.48
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0030.00618.49
8.1.160.0040.00420.72
8.1.150.0050.00320.59
8.1.140.0000.00819.63
8.1.130.0040.00417.66
8.1.120.0050.00317.44
8.1.110.0000.00817.38
8.1.100.0040.00417.34
8.1.90.0050.00217.46
8.1.80.0040.00417.43
8.1.70.0030.00317.36
8.1.60.0080.00017.63
8.1.50.0030.00617.53
8.1.40.0000.00717.43
8.1.30.0040.00417.73
8.1.20.0030.00517.62
8.1.10.0040.00417.54
8.1.00.0000.00717.49
8.0.300.0080.00018.77
8.0.290.0030.00716.58
8.0.280.0080.00018.29
8.0.270.0030.00317.19
8.0.260.0030.00317.15
8.0.250.0070.00016.92
8.0.240.0030.00316.91
8.0.230.0030.00516.79
8.0.220.0040.00416.86
8.0.210.0040.00416.66
8.0.200.0000.00616.99
8.0.190.0000.00716.88
8.0.180.0070.00016.93
8.0.170.0040.00416.78
8.0.160.0070.00016.96
8.0.150.0040.00416.82
8.0.140.0070.00416.87
8.0.130.0030.00313.36
8.0.120.0080.00016.95
8.0.110.0020.00516.92
8.0.100.0040.00416.89
8.0.90.0040.00416.91
8.0.80.0070.01116.84
8.0.70.0040.00416.91
8.0.60.0000.00716.69
8.0.50.0000.00816.80
8.0.30.0080.00816.97
8.0.20.0100.01117.40
8.0.10.0070.00016.84
8.0.00.0150.00716.72
7.4.330.0050.00016.87
7.4.320.0030.00316.45
7.4.300.0000.00616.61
7.4.290.0030.00316.60
7.4.280.0030.00616.39
7.4.270.0070.00016.52
7.4.260.0030.00316.58
7.4.250.0090.00016.54
7.4.240.0090.00016.59
7.4.230.0000.00716.60
7.4.220.0110.01116.55
7.4.210.0080.00716.55
7.4.200.0070.00016.68
7.4.160.0040.01216.22
7.4.150.0140.00317.40
7.4.140.0100.01117.86
7.4.130.0090.00816.37
7.4.120.0120.00716.51
7.4.110.0170.00716.43
7.4.100.0070.01416.49
7.4.90.0190.00316.63
7.4.80.0070.01119.39
7.4.70.0100.00616.43
7.4.60.0060.01616.39
7.4.50.0030.00716.43
7.4.40.0140.00316.59
7.4.30.0170.00316.50
7.4.00.0150.00315.20
7.3.330.0030.00313.30
7.3.320.0050.00013.28
7.3.310.0000.00716.19
7.3.300.0030.00316.34
7.3.290.0030.00316.27
7.3.280.0080.00816.32
7.3.270.0040.01317.40
7.3.260.0070.01416.30
7.3.250.0120.00616.37
7.3.240.0120.00816.29
7.3.230.0110.00816.39
7.3.210.0100.00916.29
7.3.200.0170.00419.39
7.3.190.0070.01016.34
7.3.180.0100.00616.15
7.3.170.0160.00616.43
7.3.160.0090.00616.36
7.3.10.0040.01016.68
7.3.00.0100.00416.56
7.2.330.0120.00616.59
7.2.320.0140.00716.39
7.2.310.0120.01216.58
7.2.300.0030.01416.48
7.2.290.0120.00916.40
7.2.130.0100.00516.71
7.2.120.0040.01116.76
7.2.110.0110.00316.86
7.2.100.0060.00916.79
7.2.90.0070.00716.85
7.2.80.0050.00916.71
7.2.70.0070.00616.94
7.2.60.0050.01016.79
7.2.50.0080.00416.85
7.2.40.0080.00616.82
7.2.30.0070.00716.77
7.2.20.0060.00716.70
7.2.10.0030.01116.58
7.2.00.0020.01017.54
7.1.250.0050.01115.61
7.1.200.0030.01015.88
7.1.100.0040.00718.14
7.1.70.0000.00717.19
7.1.60.0140.01019.40
7.1.50.0100.00316.90
7.1.00.0070.07322.35
7.0.200.0340.00714.22
7.0.60.0270.05321.70
7.0.50.0100.05717.95
7.0.40.0100.08320.27
7.0.30.0330.04020.25
7.0.20.0200.04320.15
7.0.10.0100.06720.24
7.0.00.0100.07720.24
5.6.280.0100.06721.08
5.6.210.0070.05720.54
5.6.200.0030.06318.19
5.6.190.0130.07020.39
5.6.180.0300.07720.48
5.6.170.0230.03720.62
5.6.160.0070.08320.46
5.6.150.0070.08318.25
5.6.140.0130.06718.14
5.6.130.0100.07718.14
5.6.120.0130.08321.11
5.6.110.0070.08720.98
5.6.100.0070.06321.14
5.6.90.0130.06720.96
5.6.80.0030.04020.29
5.5.350.0170.04720.34
5.5.340.0070.07317.98
5.5.330.0100.08020.35
5.5.320.0700.06020.34
5.5.310.0270.05020.36
5.5.300.0000.05017.95
5.5.290.0000.06018.08
5.5.280.0030.04320.88
5.5.270.0030.08720.80
5.5.260.0100.05720.97
5.5.250.0030.08320.55
5.5.240.0370.06320.27

preferences:
62.19 ms | 401 KiB | 5 Q