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.0100.01016.75
8.3.50.0130.00922.03
8.3.40.0130.00318.79
8.3.30.0140.00718.84
8.3.20.0070.00322.14
8.3.10.0080.00020.64
8.3.00.0040.00423.45
8.2.180.0070.01116.88
8.2.170.0100.00322.96
8.2.160.0160.00022.25
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0040.00419.54
8.2.110.0030.00619.21
8.2.100.0090.00317.93
8.2.90.0050.00319.13
8.2.80.0030.00517.97
8.2.70.0000.00917.63
8.2.60.0050.00317.80
8.2.50.0090.00018.09
8.2.40.0030.00522.14
8.2.30.0040.00419.53
8.2.20.0000.00717.73
8.2.10.0000.00718.13
8.2.00.0000.00818.05
8.1.280.0130.00725.92
8.1.270.0120.00622.06
8.1.260.0100.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00424.03
8.1.230.0070.00417.64
8.1.220.0050.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0050.00318.56
8.1.160.0040.00420.79
8.1.150.0050.00318.77
8.1.140.0000.00819.59
8.1.130.0030.00317.77
8.1.120.0030.00517.46
8.1.110.0000.00717.50
8.1.100.0040.00417.36
8.1.90.0050.00217.30
8.1.80.0040.00417.42
8.1.70.0070.00017.47
8.1.60.0030.00517.59
8.1.50.0060.00317.48
8.1.40.0000.00817.59
8.1.30.0000.00817.71
8.1.20.0030.00617.55
8.1.10.0050.00317.59
8.1.00.0030.00517.38
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0000.00718.43
8.0.270.0070.00017.13
8.0.260.0040.00417.11
8.0.250.0030.00316.83
8.0.240.0030.00316.99
8.0.230.0070.00016.86
8.0.220.0040.00416.83
8.0.210.0070.00016.95
8.0.200.0040.00416.93
8.0.190.0000.00716.93
8.0.180.0040.00417.00
8.0.170.0040.00416.99
8.0.160.0030.00517.05
8.0.150.0040.00416.98
8.0.140.0060.00316.80
8.0.130.0030.00313.33
8.0.120.0000.00816.90
8.0.110.0000.00716.93
8.0.100.0050.00217.03
8.0.90.0000.00716.91
8.0.80.0070.01017.00
8.0.70.0000.00816.92
8.0.60.0000.00716.80
8.0.50.0030.00517.06
8.0.30.0120.00816.94
8.0.20.0100.00917.40
8.0.10.0030.00317.03
8.0.00.0150.00616.91
7.4.330.0000.00516.70
7.4.320.0070.00016.50
7.4.300.0070.00016.61
7.4.290.0030.00316.62
7.4.280.0070.00016.55
7.4.270.0030.00516.46
7.4.260.0000.00716.60
7.4.250.0050.00316.56
7.4.240.0030.00616.51
7.4.230.0000.00716.67
7.4.220.0100.01716.56
7.4.210.0030.01316.55
7.4.200.0070.00016.70
7.4.160.0120.00416.45
7.4.150.0160.00317.40
7.4.140.0160.00517.86
7.4.130.0100.01116.53
7.4.120.0040.01616.53
7.4.110.0150.00316.70
7.4.100.0040.01916.58
7.4.90.0090.00916.59
7.4.80.0110.00719.39
7.4.70.0110.00716.48
7.4.60.0040.01316.48
7.4.50.0030.01016.55
7.4.40.0130.00316.48
7.4.30.0170.00616.57
7.4.10.0030.01715.18
7.4.00.0050.01115.01
7.3.330.0000.00613.31
7.3.320.0000.00613.31
7.3.310.0040.00416.38
7.3.300.0030.00316.40
7.3.290.0040.00316.31
7.3.280.0100.00516.35
7.3.270.0040.01417.40
7.3.260.0030.01416.52
7.3.250.0170.01116.47
7.3.240.0090.00916.45
7.3.230.0060.01216.47
7.3.210.0200.00316.48
7.3.200.0180.00619.39
7.3.190.0170.00016.30
7.3.180.0080.00816.60
7.3.170.0110.00416.43
7.3.160.0070.01016.50
7.3.130.0060.01314.93
7.3.120.0060.01214.82
7.3.110.0050.01115.00
7.3.100.0090.00814.85
7.3.90.0040.01014.61
7.3.80.0050.01014.81
7.3.70.0030.00814.81
7.3.60.0050.01114.66
7.3.50.0030.01014.86
7.3.40.0050.00914.87
7.3.30.0080.00614.86
7.3.20.0080.00616.70
7.3.10.0070.01016.49
7.3.00.0090.00716.66
7.2.330.0030.01516.63
7.2.320.0070.01316.79
7.2.310.0120.00916.53
7.2.300.0070.01016.73
7.2.290.0030.01716.64
7.2.260.0090.00615.01
7.2.250.0060.01214.98
7.2.240.0030.01214.97
7.2.230.0030.01115.06
7.2.220.0090.00915.11
7.2.210.0050.00815.16
7.2.200.0090.00415.11
7.2.190.0090.00515.07
7.2.180.0060.00414.91
7.2.170.0060.01115.07
7.2.160.0110.00514.97
7.2.150.0080.00916.78
7.2.140.0070.00717.03
7.2.130.0030.01216.97
7.2.120.0070.00416.95
7.2.110.0060.00616.79
7.2.100.0060.00816.74
7.2.90.0020.01216.82
7.2.80.0040.01116.97
7.2.70.0050.00717.01
7.2.60.0070.00716.90
7.2.50.0080.00416.88
7.2.40.0100.00716.91
7.2.30.0040.01116.90
7.2.20.0050.00816.93
7.2.10.0080.00516.77
7.2.00.0080.00717.60
7.1.330.0060.00815.66
7.1.320.0070.00715.75
7.1.310.0040.01015.74
7.1.300.0090.00515.67
7.1.290.0020.01115.68
7.1.280.0060.00715.56
7.1.270.0040.01115.67
7.1.260.0070.00615.63
7.1.250.0050.00815.64
7.1.240.0070.00415.91
7.1.230.0030.00715.75
7.1.220.0000.01015.75
7.1.210.0120.00315.71
7.1.200.0050.00815.76
7.1.190.0060.00615.67
7.1.180.0050.00315.34
7.1.170.0040.00815.64
7.1.160.0000.01315.61
7.1.150.0060.00915.82
7.1.140.0030.00915.84
7.1.130.0070.00715.59
7.1.120.0120.00315.76
7.1.110.0030.00915.89
7.1.100.0090.00015.78
7.1.90.0100.00315.92
7.1.80.0080.00815.80
7.1.70.0050.00816.49
7.1.60.0040.01116.24
7.1.50.0130.01025.27
7.1.40.0090.00315.63
7.1.30.0060.00615.66
7.1.20.0110.00415.73
7.1.10.0100.00015.61
7.1.00.0030.03518.94
7.0.330.0070.01015.23
7.0.320.0060.00615.24
7.0.310.0040.00415.36
7.0.300.0000.00815.27
7.0.290.0060.00615.42
7.0.280.0070.00715.41
7.0.270.0030.01015.41
7.0.260.0120.00315.18
7.0.250.0030.00715.52
7.0.240.0000.01315.44
7.0.230.0100.00315.48
7.0.220.0050.00515.24
7.0.210.0000.00915.46
7.0.200.0090.00516.18
7.0.190.0060.00615.30
7.0.180.0030.01315.08
7.0.170.0050.00515.29
7.0.160.0060.00915.46
7.0.150.0090.00015.38
7.0.140.0030.00915.38
7.0.130.0100.00615.45
7.0.120.0060.01015.61
7.0.110.0040.00415.54
7.0.100.0060.00615.40
7.0.90.0030.00615.38
7.0.80.0070.00715.34
7.0.70.0040.00415.41
7.0.60.0210.04017.57
7.0.50.0120.02016.62
7.0.40.0030.03616.83
7.0.30.0150.02516.72
7.0.20.0250.02516.88
7.0.10.0070.04816.71
7.0.00.0110.04116.94
5.6.400.0030.00714.27
5.6.390.0050.01014.17
5.6.380.0130.00314.15
5.6.370.0030.00614.54
5.6.360.0040.01214.56
5.6.350.0030.01014.63
5.6.340.0030.01014.68
5.6.330.0000.01414.43
5.6.320.0030.00914.25
5.6.310.0080.00614.46
5.6.300.0040.01114.50
5.6.290.0140.00414.42
5.6.280.0050.02117.78
5.6.270.0040.00714.20
5.6.260.0030.00914.51
5.6.250.0090.00014.56
5.6.240.0100.00314.27
5.6.230.0110.00314.73
5.6.220.0030.00714.54
5.6.210.0050.03517.55
5.6.200.0050.03716.34
5.6.190.0030.03017.55
5.6.180.0180.04617.53
5.6.170.0190.02217.35
5.6.160.0110.03517.46
5.6.150.0040.02916.19
5.6.140.0060.03216.23
5.6.130.0030.04716.41
5.6.120.0050.02917.72
5.6.110.0030.03217.68
5.6.100.0070.04517.69
5.6.90.0120.04017.63
5.6.80.0050.04517.40
5.6.70.0000.00913.98
5.6.60.0030.01014.55
5.6.50.0100.00614.55
5.6.40.0100.00314.50
5.6.30.0080.00814.07
5.6.20.0070.00714.07
5.6.10.0030.00914.12
5.6.00.0060.00913.98
5.5.380.0030.01014.19
5.5.370.0040.00414.26
5.5.360.0070.00714.27
5.5.350.0140.03617.44
5.5.340.0060.02516.05
5.5.330.0040.02917.05
5.5.320.0120.02617.34
5.5.310.0150.03317.17
5.5.300.0060.04616.15
5.5.290.0080.02816.08
5.5.280.0100.04517.54
5.5.270.0030.04217.61
5.5.260.0070.04017.61
5.5.250.0100.04417.41
5.5.240.0130.02317.19
5.5.230.0060.00314.20
5.5.220.0000.01214.45
5.5.210.0120.00314.24
5.5.200.0060.00314.27
5.5.190.0000.01414.25
5.5.180.0090.00614.30
5.5.170.0000.00814.35
5.5.160.0040.01413.97
5.5.150.0030.01014.02
5.5.140.0060.00614.48
5.5.130.0110.00414.49
5.5.120.0000.01214.18
5.5.110.0040.00714.27
5.5.100.0030.00514.20
5.5.90.0000.01714.27
5.5.80.0070.00714.09
5.5.70.0070.00714.14
5.5.60.0040.00414.17
5.5.50.0050.00514.07
5.5.40.0100.00614.24
5.5.30.0090.00013.93
5.5.20.0000.01414.00
5.5.10.0000.01214.36
5.5.00.0030.00614.06

preferences:
53.41 ms | 401 KiB | 5 Q