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(0 + $delta); }; //$a = new closure(); $closure(4); //$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.0100.01018.31
8.3.50.0140.00721.99
8.3.40.0090.00618.85
8.3.30.0100.00718.90
8.3.20.0050.00320.29
8.3.10.0040.00420.54
8.3.00.0050.00323.65
8.2.180.0120.00616.50
8.2.170.0070.01422.96
8.2.160.0080.00519.20
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00020.80
8.2.120.0000.00726.35
8.2.110.0060.00322.14
8.2.100.0080.00317.78
8.2.90.0050.00319.08
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0000.00817.80
8.2.50.0080.00018.09
8.2.40.0050.00322.16
8.2.30.0000.00719.34
8.2.20.0050.00217.80
8.2.10.0070.00017.94
8.2.00.0030.00618.05
8.1.280.0090.00925.92
8.1.270.0120.00622.14
8.1.260.0030.01028.09
8.1.250.0090.00628.09
8.1.240.0050.00522.07
8.1.230.0000.01217.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.48
8.1.160.0000.00720.77
8.1.150.0080.00020.66
8.1.140.0040.00419.45
8.1.130.0030.00317.71
8.1.120.0070.00017.51
8.1.110.0040.00417.31
8.1.100.0040.00417.42
8.1.90.0000.00817.52
8.1.80.0000.00717.38
8.1.70.0030.00317.37
8.1.60.0050.00217.57
8.1.50.0050.00317.53
8.1.40.0040.00417.51
8.1.30.0040.00417.62
8.1.20.0040.00417.46
8.1.10.0080.00017.45
8.1.00.0040.00417.43
8.0.300.0050.00218.77
8.0.290.0040.00416.59
8.0.280.0000.00818.32
8.0.270.0030.00317.32
8.0.260.0030.00317.24
8.0.250.0000.00816.78
8.0.240.0030.00316.74
8.0.230.0030.00316.91
8.0.220.0030.00316.82
8.0.210.0050.00216.75
8.0.200.0000.00716.91
8.0.190.0000.00716.89
8.0.180.0000.00716.87
8.0.170.0000.00716.84
8.0.160.0050.00316.90
8.0.150.0030.00516.89
8.0.140.0080.00416.74
8.0.130.0000.00613.30
8.0.120.0040.00416.84
8.0.110.0050.00316.71
8.0.100.0040.00416.69
8.0.90.0040.00416.77
8.0.80.0040.01416.84
8.0.70.0070.00016.72
8.0.60.0040.00416.72
8.0.50.0040.00416.97
8.0.30.0090.01117.00
8.0.20.0100.00817.40
8.0.10.0040.00416.90
8.0.00.0070.01116.70
7.4.330.0030.00316.79
7.4.320.0040.00416.58
7.4.300.0040.00416.60
7.4.290.0070.00016.52
7.4.280.0030.00516.59
7.4.270.0030.00316.58
7.4.260.0050.00316.58
7.4.250.0000.00816.50
7.4.240.0000.00816.59
7.4.230.0030.00316.30
7.4.220.0070.01316.55
7.4.210.0100.00816.60
7.4.200.0040.00416.34
7.4.160.0170.00016.48
7.4.150.0160.00317.40
7.4.140.0100.00817.86
7.4.130.0080.00916.38
7.4.120.0090.01016.47
7.4.110.0100.00716.67
7.4.100.0110.00616.58
7.4.90.0100.00716.69
7.4.80.0090.00919.39
7.4.70.0120.00416.23
7.4.60.0090.00816.40
7.4.50.0030.01116.21
7.4.40.0090.00816.29
7.4.30.0130.01016.59
7.4.00.0060.01114.70
7.3.330.0050.00013.27
7.3.320.0000.00513.30
7.3.310.0000.00916.16
7.3.300.0000.00816.15
7.3.290.0000.00616.15
7.3.280.0080.00716.31
7.3.270.0110.00617.40
7.3.260.0110.00816.64
7.3.250.0090.01016.38
7.3.240.0080.01116.53
7.3.230.0060.01216.39
7.3.210.0130.00516.52
7.3.200.0140.00919.39
7.3.190.0060.01216.64
7.3.180.0090.00616.57
7.3.170.0100.00616.41
7.3.160.0060.00916.38
7.3.120.0070.01014.77
7.3.110.0140.00414.76
7.3.100.0110.00414.70
7.3.90.0100.00714.67
7.3.80.0100.00314.49
7.3.70.0030.00614.63
7.3.60.0000.01414.90
7.3.50.0070.00714.83
7.3.40.0030.00914.41
7.3.30.0070.00714.82
7.3.20.0060.00916.27
7.3.10.0110.00016.55
7.3.00.0090.00916.65
7.2.330.0030.01716.36
7.2.320.0070.01316.35
7.2.310.0080.01316.71
7.2.300.0100.00616.64
7.2.290.0100.01016.85
7.2.250.0120.00614.58
7.2.240.0100.01015.05
7.2.230.0030.01015.20
7.2.220.0030.00715.03
7.2.210.0080.00415.07
7.2.200.0030.01415.07
7.2.190.0030.01315.04
7.2.180.0060.00315.16
7.2.170.0030.01014.99
7.1.330.0000.01415.42
7.1.320.0060.00915.36
7.1.310.0000.01415.82
7.1.300.0110.00715.86
7.1.290.0050.00515.68
7.1.280.0090.00615.80
7.1.270.0060.00915.48
7.1.260.0090.00915.71
7.1.70.0050.00316.90
7.1.60.0130.01319.40
7.1.50.0090.01316.73
7.1.00.0070.07322.33
7.0.200.0360.00614.65
7.0.60.0370.06719.86
7.0.50.0070.06017.84
7.0.40.0070.07020.21
7.0.30.0300.07020.12
7.0.20.0100.04720.33
7.0.10.0070.08020.16
7.0.00.0170.07020.24
5.6.280.0000.04020.90
5.6.210.0100.04020.57
5.6.200.0100.03718.23
5.6.190.0030.08720.55
5.6.180.0300.04020.45
5.6.170.0330.07320.71
5.6.160.0070.04320.60
5.6.150.0100.08018.23
5.6.140.0070.08718.18
5.6.130.0100.07018.23
5.6.120.0170.08021.06
5.6.110.0070.08321.11
5.6.100.0030.08020.96
5.6.90.0030.06721.04
5.6.80.0100.05320.38
5.5.350.0200.07720.45
5.5.340.0100.07717.97
5.5.330.0070.04320.40
5.5.320.0170.06320.30
5.5.310.0370.04720.26
5.5.300.0070.05718.07
5.5.290.0030.04017.95
5.5.280.0100.07720.80
5.5.270.0170.08020.76
5.5.260.0300.06020.88
5.5.250.0070.08020.66
5.5.240.0230.05320.27

preferences:
49.18 ms | 401 KiB | 5 Q