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($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.0000.01418.39
8.3.50.0130.00721.04
8.3.40.0180.00318.54
8.3.30.0030.01018.54
8.3.20.0030.00519.99
8.3.10.0040.00421.67
8.3.00.0070.00021.76
8.2.180.0100.00716.75
8.2.170.0080.00822.96
8.2.160.0150.00320.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00619.27
8.2.120.0040.00426.35
8.2.110.0120.00919.09
8.2.100.0090.00317.93
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0080.00018.09
8.2.40.0000.00822.33
8.2.30.0000.00719.38
8.2.20.0040.00417.76
8.2.10.0050.00218.13
8.2.00.0040.00418.08
8.1.280.0100.01025.92
8.1.270.0070.00722.06
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00622.47
8.1.230.0070.00417.70
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0030.00518.46
8.1.160.0050.00220.69
8.1.150.0080.00020.66
8.1.140.0050.00319.56
8.1.130.0070.00017.64
8.1.120.0040.00417.48
8.1.110.0040.00417.48
8.1.100.0040.00417.43
8.1.90.0000.00717.48
8.1.80.0040.00417.51
8.1.70.0080.00017.40
8.1.60.0080.00017.64
8.1.50.0030.00617.56
8.1.40.0070.00317.41
8.1.30.0030.00517.52
8.1.20.0000.00717.69
8.1.10.0030.00617.52
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.46
8.0.270.0030.00317.07
8.0.260.0000.00617.07
8.0.250.0000.00716.91
8.0.240.0030.00616.93
8.0.230.0030.00316.88
8.0.220.0000.00816.82
8.0.210.0000.00816.90
8.0.200.0060.00016.93
8.0.190.0080.00016.93
8.0.180.0060.00316.94
8.0.170.0050.00316.84
8.0.160.0030.00616.81
8.0.150.0040.00416.77
8.0.140.0040.00416.86
8.0.130.0000.00513.32
8.0.120.0040.00416.82
8.0.110.0040.00416.90
8.0.100.0040.00416.90
8.0.90.0040.00416.73
8.0.80.0090.00616.82
8.0.70.0040.00416.88
8.0.60.0000.00816.93
8.0.50.0070.00016.93
8.0.30.0090.01017.08
8.0.20.0090.01117.40
8.0.10.0000.00716.93
8.0.00.0100.00716.67
7.4.330.0050.00016.70
7.4.320.0000.00616.64
7.4.300.0050.00316.54
7.4.290.0040.00416.60
7.4.280.0000.00716.45
7.4.270.0030.00316.44
7.4.260.0030.00316.49
7.4.250.0070.00016.46
7.4.240.0000.00716.41
7.4.230.0000.00716.59
7.4.220.0090.01016.61
7.4.210.0100.00716.55
7.4.200.0050.00216.59
7.4.160.0060.01116.66
7.4.150.0130.00317.40
7.4.140.0140.01117.86
7.4.130.0100.00616.46
7.4.120.0110.00916.46
7.4.110.0080.01216.55
7.4.100.0030.01416.31
7.4.90.0100.01016.72
7.4.80.0130.00919.39
7.4.70.0070.01016.65
7.4.60.0090.00916.46
7.4.50.0000.01516.22
7.4.40.0100.00716.56
7.4.30.0040.01616.50
7.4.10.0100.01014.41
7.4.00.0070.00914.85
7.3.330.0060.00013.16
7.3.320.0030.00213.16
7.3.310.0030.00316.29
7.3.300.0070.00016.30
7.3.290.0030.00316.26
7.3.280.0090.01016.29
7.3.270.0100.00717.40
7.3.260.0110.01416.65
7.3.250.0080.01016.37
7.3.240.0100.00816.40
7.3.230.0100.00616.39
7.3.210.0030.01316.34
7.3.200.0060.01219.39
7.3.190.0140.00716.32
7.3.180.0120.00416.33
7.3.170.0090.01216.54
7.3.160.0070.00816.32
7.3.130.0070.01314.80
7.3.120.0100.01014.64
7.3.110.0070.01114.59
7.3.100.0060.00614.70
7.3.90.0070.00714.67
7.3.80.0030.01014.51
7.3.70.0060.00314.74
7.3.60.0130.00314.73
7.3.50.0040.01214.73
7.3.40.0030.01014.62
7.3.30.0130.00314.48
7.3.20.0040.01116.28
7.3.10.0120.00316.56
7.3.00.0040.00816.53
7.2.330.0150.00616.50
7.2.320.0160.00616.79
7.2.310.0090.00916.43
7.2.300.0070.01516.71
7.2.290.0080.00816.75
7.2.260.0070.01114.69
7.2.250.0110.00715.04
7.2.240.0040.01115.13
7.2.230.0040.01115.14
7.2.220.0110.00314.84
7.2.210.0030.01314.91
7.2.200.0030.00715.07
7.2.190.0080.00815.04
7.2.180.0100.00014.92
7.2.170.0080.00314.96
7.2.160.0060.00914.91
7.2.150.0060.00916.60
7.2.140.0060.00616.77
7.2.130.0030.01016.59
7.2.120.0100.00016.95
7.2.110.0060.00316.72
7.2.100.0070.00716.99
7.2.90.0030.01316.92
7.2.80.0030.00916.98
7.2.70.0070.01016.95
7.2.60.0030.01416.88
7.2.50.0090.00616.95
7.2.40.0000.01316.75
7.2.30.0110.00616.81
7.2.20.0040.01116.62
7.2.10.0030.01416.72
7.2.00.0000.01218.10
7.1.330.0100.00615.88
7.1.320.0030.00615.82
7.1.310.0050.00515.65
7.1.300.0060.00615.77
7.1.290.0030.00615.53
7.1.280.0060.01015.83
7.1.270.0000.00915.59
7.1.260.0040.00815.65
7.1.250.0070.00715.65
7.1.240.0080.00315.61
7.1.230.0070.00315.87
7.1.220.0070.01015.62
7.1.210.0040.01115.75
7.1.200.0070.00515.63
7.1.190.0070.00715.71
7.1.180.0130.00015.76
7.1.170.0000.01215.73
7.1.160.0070.00715.58
7.1.150.0070.00315.49
7.1.140.0040.00715.29
7.1.130.0060.00315.77
7.1.120.0030.01415.40
7.1.110.0030.01015.74
7.1.100.0070.00715.76
7.1.90.0040.00715.72
7.1.80.0070.01315.93
7.1.70.0000.01416.43
7.1.60.0020.01016.27
7.1.50.0050.01016.40
7.1.40.0040.00715.58
7.1.30.0040.00815.82
7.1.20.0060.00615.67
7.1.10.0030.00615.84
7.1.00.0040.04219.15
7.0.330.0060.00615.18
7.0.320.0070.00315.30
7.0.310.0070.00714.88
7.0.300.0030.00615.01
7.0.290.0120.00314.89
7.0.280.0040.00415.16
7.0.270.0060.00615.28
7.0.260.0030.01015.30
7.0.250.0000.00815.09
7.0.240.0000.01315.02
7.0.230.0070.00715.48
7.0.220.0030.01015.25
7.0.210.0070.00315.31
7.0.200.0050.00915.91
7.0.190.0030.01215.37
7.0.180.0000.00815.09
7.0.170.0040.00415.16
7.0.160.0100.00015.34
7.0.150.0100.00315.35
7.0.140.0030.01015.26
7.0.130.0030.00915.31
7.0.120.0060.00315.43
7.0.110.0030.01015.09
7.0.100.0160.04017.57
7.0.90.0120.03817.58
7.0.80.0070.03917.61
7.0.70.0050.02817.54
7.0.60.0080.04217.53
7.0.50.0070.03717.63
7.0.40.0100.04016.82
7.0.30.0030.03216.79
7.0.20.0030.02916.72
7.0.10.0030.04716.56
7.0.00.0080.03916.62
5.6.400.0030.01014.18
5.6.390.0030.00914.18
5.6.380.0000.01014.38
5.6.370.0030.00913.94
5.6.360.0070.00714.38
5.6.350.0090.00614.34
5.6.340.0090.00314.01
5.6.330.0040.01114.39
5.6.320.0000.00914.41
5.6.310.0060.00314.54
5.6.300.0060.00914.17
5.6.290.0030.00714.03
5.6.280.0060.00614.19
5.6.270.0080.00414.10
5.6.260.0070.00314.46
5.6.250.0060.04317.13
5.6.240.0090.04517.50
5.6.230.0090.04017.22
5.6.220.0070.02617.23
5.6.210.0050.04617.37
5.6.200.0050.03517.66
5.6.190.0090.04717.72
5.6.180.0000.04317.64
5.6.170.0030.04817.69
5.6.160.0060.02617.57
5.6.150.0070.04017.71
5.6.140.0050.02317.55
5.6.130.0080.04217.56
5.6.120.0120.03817.51
5.6.110.0090.04517.60
5.6.100.0050.03017.73
5.6.90.0100.04017.71
5.6.80.0030.04817.42
5.6.70.0030.02917.25
5.6.60.0070.04517.09
5.6.50.0060.04317.25
5.6.40.0130.03817.35
5.6.30.0080.04017.21
5.6.20.0030.03017.36
5.6.10.0080.04217.33
5.6.00.0120.03817.33
5.5.380.0050.02717.30
5.5.370.0050.04517.42
5.5.360.0090.04417.37
5.5.350.0100.02217.20
5.5.340.0030.02917.40
5.5.330.0050.03017.53
5.5.320.0120.04317.47
5.5.310.0050.04317.25
5.5.300.0080.04017.34
5.5.290.0120.04217.74
5.5.280.0100.03817.68
5.5.270.0070.04317.58
5.5.260.0100.04317.57
5.5.250.0020.04817.57
5.5.240.0120.04217.19
5.5.230.0150.03217.08
5.5.220.0070.04416.84
5.5.210.0080.03717.22
5.5.200.0150.03317.16
5.5.190.0050.04017.22
5.5.180.0070.02417.01
5.5.170.0060.00914.25
5.5.160.0080.04117.07
5.5.150.0050.04317.08
5.5.140.0090.02517.14
5.5.130.0060.04317.11
5.5.120.0030.04317.35
5.5.110.0030.04316.85
5.5.100.0080.04117.09
5.5.90.0080.03516.97
5.5.80.0050.04117.10
5.5.70.0100.03017.01
5.5.60.0090.02517.20
5.5.50.0070.04117.09
5.5.40.0050.04217.16
5.5.30.0110.04017.09
5.5.20.0060.03717.16
5.5.10.0020.04517.17
5.5.00.0060.04117.12

preferences:
46.82 ms | 401 KiB | 5 Q