3v4l.org

run code in 300+ PHP versions simultaneously
<?php //imp of _invoke magic method 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.0060.01016.75
8.3.50.0090.00618.27
8.3.40.0070.01118.51
8.3.30.0110.00318.89
8.3.20.0040.00420.39
8.3.10.0000.00820.33
8.3.00.0050.00323.27
8.2.180.0080.00616.38
8.2.170.0070.00722.96
8.2.160.0100.00319.40
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00820.79
8.2.120.0040.00426.35
8.2.110.0090.00919.31
8.2.100.0040.00818.04
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0030.00617.48
8.2.60.0030.00619.53
8.2.50.0000.00918.09
8.2.40.0080.00022.20
8.2.30.0030.00319.37
8.2.20.0070.00217.69
8.2.10.0040.00418.02
8.2.00.0040.00418.05
8.1.280.0100.00725.92
8.1.270.0080.00022.19
8.1.260.0080.00028.09
8.1.250.0050.00228.09
8.1.240.0030.00722.51
8.1.230.0040.00717.54
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0050.00317.25
8.1.180.0030.00618.10
8.1.170.0030.00518.58
8.1.160.0000.00720.77
8.1.150.0040.00420.58
8.1.140.0030.00619.50
8.1.130.0040.00417.59
8.1.120.0040.00417.39
8.1.110.0040.00417.45
8.1.100.0040.00417.34
8.1.90.0040.00417.36
8.1.80.0000.00717.50
8.1.70.0040.00417.35
8.1.60.0000.00917.62
8.1.50.0030.00717.59
8.1.40.0080.00017.46
8.1.30.0050.00317.55
8.1.20.0040.00417.54
8.1.10.0040.00417.48
8.1.00.0000.00717.45
8.0.300.0050.00218.77
8.0.290.0070.00016.58
8.0.280.0050.00318.34
8.0.270.0030.00317.21
8.0.260.0030.00317.11
8.0.250.0030.00316.87
8.0.240.0030.00316.80
8.0.230.0000.00816.90
8.0.220.0050.00216.68
8.0.210.0000.00716.89
8.0.200.0070.00016.79
8.0.190.0000.00716.86
8.0.180.0000.00816.91
8.0.170.0040.00416.91
8.0.160.0000.00716.80
8.0.150.0040.00416.79
8.0.140.0000.00716.89
8.0.130.0030.00313.28
8.0.120.0060.00616.79
8.0.110.0000.00716.80
8.0.100.0000.00716.71
8.0.90.0040.00416.72
8.0.80.0000.01616.82
8.0.70.0000.00716.85
8.0.60.0070.00016.96
8.0.50.0000.00716.91
8.0.30.0120.00717.14
8.0.20.0100.00917.40
8.0.10.0040.00416.88
8.0.00.0080.01016.76
7.4.330.0060.00016.66
7.4.320.0000.00616.65
7.4.300.0070.00016.51
7.4.290.0040.00416.62
7.4.280.0040.00416.62
7.4.270.0060.00316.59
7.4.260.0030.00316.51
7.4.250.0040.00416.52
7.4.240.0050.00216.65
7.4.230.0000.00716.71
7.4.220.0090.01216.45
7.4.210.0050.01116.62
7.4.200.0030.00316.59
7.4.160.0060.00916.46
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0170.00616.33
7.4.120.0090.00916.47
7.4.110.0100.00716.65
7.4.100.0100.00716.46
7.4.90.0060.01616.41
7.4.80.0070.01419.39
7.4.70.0120.00616.42
7.4.60.0040.01716.32
7.4.50.0060.00616.29
7.4.40.0060.01116.48
7.4.30.0060.01616.47
7.4.00.0120.00415.03
7.3.330.0030.00313.30
7.3.320.0000.00613.17
7.3.310.0040.00416.18
7.3.300.0000.00716.26
7.3.290.0030.00316.17
7.3.280.0100.00916.27
7.3.270.0130.00317.40
7.3.260.0030.01716.30
7.3.250.0120.00716.38
7.3.240.0150.00216.35
7.3.230.0060.01116.50
7.3.210.0110.00416.22
7.3.200.0060.01319.39
7.3.190.0100.00616.38
7.3.180.0130.00416.53
7.3.170.0090.01216.59
7.3.160.0100.00716.54
7.3.120.0080.00814.76
7.3.110.0060.00914.93
7.3.100.0060.00914.89
7.3.90.0080.00814.66
7.3.80.0090.00914.58
7.3.70.0070.01014.55
7.3.60.0030.01214.71
7.3.50.0070.00614.79
7.3.40.0020.01014.66
7.3.30.0080.00814.86
7.3.20.0020.01016.63
7.3.10.0030.01016.58
7.3.00.0020.00816.50
7.2.330.0100.00716.60
7.2.320.0110.00616.42
7.2.310.0060.01316.79
7.2.300.0040.01216.64
7.2.290.0110.00716.53
7.2.250.0080.00815.14
7.2.240.0050.01115.14
7.2.230.0090.00815.18
7.2.220.0050.01215.04
7.2.210.0050.01014.85
7.2.200.0050.00714.77
7.2.190.0030.01015.09
7.2.180.0060.00814.93
7.2.170.0080.00515.10
7.2.160.0080.00815.13
7.2.150.0040.01416.76
7.2.140.0030.00916.87
7.2.130.0100.00316.71
7.2.120.0030.00716.61
7.2.110.0000.01316.89
7.2.100.0030.01016.62
7.2.90.0040.00716.95
7.2.80.0070.00716.94
7.2.70.0070.00716.64
7.2.60.0030.00816.89
7.2.50.0040.01116.91
7.2.40.0000.01517.07
7.2.30.0060.00317.05
7.2.20.0100.00716.52
7.2.10.0030.01416.62
7.2.00.0060.00918.18
7.1.330.0070.00715.71
7.1.320.0040.00915.80
7.1.310.0050.01015.64
7.1.300.0100.00315.66
7.1.290.0050.00715.56
7.1.280.0050.00615.84
7.1.270.0030.01115.77
7.1.260.0000.00915.71
7.1.250.0060.00615.57
7.1.200.0030.00315.85
7.1.100.0090.00317.91
7.1.70.0000.00717.32
7.1.60.0070.01719.40
7.1.50.0100.01016.91
7.1.00.0030.07322.45
7.0.200.0270.01014.55
7.0.60.0230.07319.96
7.0.50.0070.04717.89
7.0.40.0070.06720.35
7.0.30.0300.03720.35
7.0.20.0330.06320.10
7.0.10.0100.08020.19
7.0.00.0070.05020.23
5.6.280.0030.06021.11
5.6.210.0100.06720.72
5.6.200.0070.07718.20
5.6.190.0030.08720.58
5.6.180.0270.08020.48
5.6.170.0170.04320.48
5.6.160.0030.06720.57
5.6.150.0070.03718.16
5.6.140.0070.04018.19
5.6.130.0030.04318.23
5.6.120.0030.04020.87
5.6.110.0130.07320.91
5.6.100.0070.04321.00
5.6.90.0070.08321.11
5.6.80.0030.03720.39
5.5.350.0170.08020.28
5.5.340.0070.04717.98
5.5.330.0070.04020.08
5.5.320.0570.07020.38
5.5.310.0300.06320.23
5.5.300.0030.08717.98
5.5.290.0270.06717.98
5.5.280.0170.04320.89
5.5.270.0070.04020.68
5.5.260.0130.07320.85
5.5.250.0070.08720.78
5.5.240.0270.05020.32

preferences:
39.74 ms | 400 KiB | 5 Q