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) { (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.0140.00716.50
8.3.50.0160.00621.98
8.3.40.0070.01518.70
8.3.30.0130.00318.58
8.3.20.0060.00320.30
8.3.10.0060.00320.59
8.3.00.0000.00723.66
8.2.180.0060.00916.63
8.2.170.0090.00622.96
8.2.160.0070.01022.27
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00320.75
8.2.120.0070.00726.35
8.2.110.0110.00020.52
8.2.100.0040.00717.91
8.2.90.0040.00419.09
8.2.80.0080.00017.97
8.2.70.0050.00317.25
8.2.60.0050.00317.92
8.2.50.0040.00418.09
8.2.40.0060.00322.11
8.2.30.0030.00419.45
8.2.20.0030.00517.80
8.2.10.0030.00318.04
8.2.00.0000.00818.12
8.1.280.0100.00725.92
8.1.270.0030.00622.10
8.1.260.0070.00728.09
8.1.250.0000.00828.09
8.1.240.0030.00622.05
8.1.230.0110.00017.42
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0000.00820.79
8.1.150.0000.00718.90
8.1.140.0040.00419.59
8.1.130.0030.00517.77
8.1.120.0000.00717.57
8.1.110.0040.00417.51
8.1.100.0040.00417.48
8.1.90.0000.00717.37
8.1.80.0050.00217.51
8.1.70.0040.00417.47
8.1.60.0040.00417.59
8.1.50.0030.00617.43
8.1.40.0050.00317.52
8.1.30.0040.00417.71
8.1.20.0000.00717.46
8.1.10.0080.00017.60
8.1.00.0000.00817.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0000.00817.26
8.0.260.0000.00617.16
8.0.250.0040.00416.94
8.0.240.0030.00316.96
8.0.230.0000.00716.88
8.0.220.0050.00216.86
8.0.210.0070.00016.73
8.0.200.0040.00417.03
8.0.190.0000.00816.93
8.0.180.0040.00416.93
8.0.170.0000.00716.91
8.0.160.0000.00816.96
8.0.150.0020.00516.91
8.0.140.0080.00416.79
8.0.130.0030.00313.39
8.0.120.0050.00216.79
8.0.110.0020.00516.81
8.0.100.0030.00516.96
8.0.90.0000.00716.73
8.0.80.0070.01016.83
8.0.70.0040.00316.81
8.0.60.0040.00416.68
8.0.50.0040.00416.78
8.0.30.0080.01017.01
8.0.20.0100.00917.40
8.0.10.0070.00016.99
8.0.00.0120.00816.70
7.4.330.0020.00216.79
7.4.320.0030.00316.51
7.4.300.0000.00616.61
7.4.290.0070.00016.58
7.4.280.0040.00416.53
7.4.270.0000.00716.60
7.4.260.0030.00616.45
7.4.250.0000.00816.38
7.4.240.0030.00316.49
7.4.230.0030.00316.70
7.4.220.0110.00716.54
7.4.210.0100.00616.64
7.4.200.0000.00716.40
7.4.160.0100.00716.62
7.4.150.0060.01617.40
7.4.140.0160.00317.86
7.4.130.0060.01016.51
7.4.120.0120.00716.40
7.4.110.0100.00716.47
7.4.100.0100.00716.53
7.4.90.0060.01116.33
7.4.80.0030.01419.39
7.4.70.0030.01416.34
7.4.60.0130.00516.52
7.4.50.0040.00716.20
7.4.40.0110.00916.53
7.4.30.0060.01316.36
7.4.00.0070.01115.15
7.3.330.0060.00013.28
7.3.320.0030.00313.23
7.3.310.0030.00316.31
7.3.300.0030.00316.32
7.3.290.0070.00016.35
7.3.280.0110.00616.30
7.3.270.0100.00717.40
7.3.260.0110.00816.52
7.3.250.0090.01016.45
7.3.240.0090.01016.35
7.3.230.0180.00616.39
7.3.210.0100.01316.37
7.3.200.0100.00719.39
7.3.190.0060.01116.56
7.3.180.0060.01116.57
7.3.170.0060.01216.35
7.3.160.0060.00916.43
7.3.120.0070.01115.07
7.3.110.0060.00914.52
7.3.100.0000.01414.51
7.3.90.0040.00814.55
7.3.80.0000.01414.58
7.3.70.0090.00314.27
7.3.60.0070.00714.71
7.3.50.0000.01714.85
7.3.40.0060.01014.64
7.3.30.0070.00314.84
7.3.20.0040.01116.73
7.3.10.0040.01116.59
7.3.00.0090.00716.70
7.2.330.0120.00916.40
7.2.320.0030.01316.64
7.2.310.0120.00916.59
7.2.300.0080.00816.50
7.2.290.0160.00016.41
7.2.250.0070.01014.82
7.2.240.0120.00614.89
7.2.230.0070.00714.75
7.2.220.0060.00315.05
7.2.210.0060.01014.94
7.2.200.0000.01014.80
7.2.190.0090.00614.82
7.2.180.0000.01015.00
7.2.170.0000.01514.82
7.2.130.0150.00616.89
7.2.120.0130.00616.89
7.2.110.0110.00716.68
7.2.100.0060.01016.70
7.2.90.0140.00416.72
7.2.80.0030.00716.81
7.2.70.0030.01016.73
7.2.60.0080.00616.80
7.2.50.0090.00616.89
7.2.40.0070.00716.97
7.2.30.0060.01017.00
7.2.20.0070.00716.87
7.2.10.0030.00916.91
7.2.00.0060.00817.92
7.1.330.0140.00015.94
7.1.320.0030.00715.85
7.1.310.0050.00815.81
7.1.300.0030.00715.57
7.1.290.0030.01015.52
7.1.280.0120.00416.01
7.1.270.0090.00615.67
7.1.260.0060.01015.69
7.1.250.0030.00715.87
7.1.240.0090.00015.57
7.1.230.0090.00615.62
7.1.220.0090.00315.61
7.1.210.0040.00815.72
7.1.200.0050.00515.57
7.1.190.0070.00715.89
7.1.180.0000.00815.60
7.1.170.0060.01215.86
7.1.160.0090.00015.84
7.1.150.0080.00615.52
7.1.140.0160.00015.94
7.1.130.0040.00915.71
7.1.120.0080.00415.66
7.1.110.0060.00915.91
7.1.100.0090.00216.90
7.1.90.0060.00615.84
7.1.80.0000.01115.69
7.1.70.0050.00516.58
7.1.60.0090.01117.58
7.1.50.0020.01016.27
7.1.40.0030.00615.48
7.1.30.0090.00615.66
7.1.20.0100.00715.70
7.1.10.0070.00315.85
7.1.00.0040.02918.97
7.0.330.0090.00615.10
7.0.320.0080.00615.49
7.0.310.0000.01415.61
7.0.300.0070.00715.38
7.0.290.0100.00315.21
7.0.280.0030.00715.48
7.0.270.0060.00615.16
7.0.260.0130.00715.42
7.0.250.0100.01015.24
7.0.240.0060.00315.30
7.0.230.0080.00615.51
7.0.220.0130.00015.47
7.0.210.0150.00315.33
7.0.200.0240.00715.01
7.0.190.0100.00715.28
7.0.180.0090.00615.26
7.0.170.0030.00915.24
7.0.160.0140.00015.17
7.0.150.0100.00315.27
7.0.140.0100.00315.47
7.0.130.0150.00315.46
7.0.120.0040.00715.48
7.0.110.0000.00815.37
7.0.100.0090.00615.32
7.0.90.0070.00315.58
7.0.80.0070.00315.24
7.0.70.0030.00815.47
7.0.60.0180.02917.76
7.0.50.0000.03516.58
7.0.40.0020.04716.91
7.0.30.0200.04216.78
7.0.20.0170.04316.80
7.0.10.0080.03516.87
7.0.00.0120.04016.89
5.6.380.0040.00414.07
5.6.370.0060.00614.05
5.6.360.0110.00414.46
5.6.350.0030.01014.37
5.6.340.0030.01014.12
5.6.330.0110.00014.47
5.6.320.0030.01414.24
5.6.310.0050.00514.68
5.6.300.0030.00914.37
5.6.290.0070.00714.34
5.6.280.0070.01717.81
5.6.270.0120.00314.40
5.6.260.0060.00614.29
5.6.250.0040.01114.62
5.6.240.0040.01114.37
5.6.230.0030.00914.46
5.6.220.0030.01014.50
5.6.210.0030.04817.46
5.6.200.0150.02616.28
5.6.190.0060.04517.47
5.6.180.0200.04017.36
5.6.170.0130.02217.52
5.6.160.0070.04517.39
5.6.150.0030.03516.29
5.6.140.0120.03316.37
5.6.130.0030.02716.32
5.6.120.0110.03617.71
5.6.110.0100.04017.57
5.6.100.0070.03517.72
5.6.90.0050.04717.70
5.6.80.0100.04317.29
5.6.70.0030.00914.41
5.6.60.0040.00814.41
5.6.50.0040.00714.15
5.6.40.0030.01014.14
5.6.30.0080.00514.26
5.6.20.0100.00314.18
5.6.10.0060.00914.12
5.6.00.0040.01114.55
5.5.380.0040.00411.08
5.5.370.0000.01111.40
5.5.360.0030.00611.38
5.5.350.0130.03515.88
5.5.340.0070.02914.42
5.5.330.0000.02815.77
5.5.320.0150.02615.74
5.5.310.0190.03915.60
5.5.300.0120.02314.49
5.5.290.0050.02214.58
5.5.280.0120.02315.89
5.5.270.0050.04815.88
5.5.260.0100.04015.99
5.5.250.0050.04315.93
5.5.240.0120.02215.49
5.5.230.0030.00310.86
5.5.220.0060.00311.08
5.5.210.0000.00911.04
5.5.200.0020.00711.25
5.5.190.0040.00711.13
5.5.180.0030.00311.02
5.5.170.0050.00511.08
5.5.160.0040.00810.78
5.5.150.0030.00811.05
5.5.140.0000.00711.27
5.5.130.0030.01011.21
5.5.120.0040.00711.11
5.5.110.0000.00610.95
5.5.100.0030.00310.98
5.5.90.0030.00710.99
5.5.80.0110.00011.10
5.5.70.0110.00011.16
5.5.60.0040.00411.04
5.5.50.0040.00411.09
5.5.40.0040.00411.00
5.5.30.0030.00711.09
5.5.20.0000.00711.35
5.5.10.0000.01411.15
5.5.00.0110.00010.86

preferences:
69.41 ms | 401 KiB | 5 Q