3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IntBox { public $foo; public function __construct(int $foo) { $this->foo = $foo; } public function __invoke() { return $this->foo; } } $a = new IntBox(20); $b = new IntBox(30); echo $a() + $b();

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.5.30.0080.01019.40
8.5.20.0120.00618.58
8.5.10.0020.00721.82
8.5.00.0190.01120.03
8.4.180.0100.01219.62
8.4.170.0090.01223.77
8.4.160.0160.00522.92
8.4.150.0080.00416.86
8.4.140.0180.00917.27
8.4.130.0080.00618.95
8.4.120.0070.00320.78
8.4.110.0110.00922.46
8.4.100.0140.00617.83
8.4.90.0120.00917.66
8.4.80.0040.00519.61
8.4.70.0070.01017.75
8.4.60.0070.01318.61
8.4.50.0050.00617.47
8.4.40.0060.01319.45
8.4.30.0040.00417.68
8.4.20.0100.01017.58
8.4.10.0040.00417.67
8.3.300.0150.00518.81
8.3.290.0090.01220.88
8.3.280.0090.01118.38
8.3.270.0150.00516.66
8.3.260.0130.00616.34
8.3.250.0100.00918.86
8.3.240.0120.00416.80
8.3.230.0170.00516.57
8.3.220.0020.00616.92
8.3.210.0070.00716.61
8.3.200.0100.00916.82
8.3.190.0130.00518.43
8.3.180.0100.00816.41
8.3.170.0120.00618.78
8.3.160.0060.01316.45
8.3.150.0080.00019.00
8.3.140.0060.01216.49
8.3.130.0030.00518.30
8.3.120.0120.00820.72
8.3.110.0090.00016.78
8.3.100.0130.00716.41
8.3.90.0030.00626.77
8.3.80.0040.00417.97
8.3.70.0070.00718.43
8.3.60.0100.01018.36
8.3.50.0140.00721.93
8.3.40.0070.00718.96
8.3.30.0120.00319.02
8.3.20.0040.00420.34
8.3.10.0040.00421.78
8.3.00.0040.00419.38
8.2.300.0120.00820.30
8.2.290.0100.00520.58
8.2.280.0020.00618.25
8.2.270.0050.00318.95
8.2.260.0080.00022.40
8.2.250.0050.00316.73
8.2.240.0080.00016.53
8.2.230.0100.00020.94
8.2.220.0030.00624.06
8.2.210.0040.01426.77
8.2.200.0060.00316.75
8.2.190.0070.00718.29
8.2.180.0180.00418.25
8.2.170.0140.00022.96
8.2.160.0130.00720.09
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0050.00219.66
8.2.110.0030.00620.52
8.2.100.0040.00817.91
8.2.90.0070.00018.16
8.2.80.0060.00317.97
8.2.70.0040.00717.50
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0000.00819.82
8.2.30.0000.00717.93
8.2.20.0000.00717.74
8.2.10.0060.00318.05
8.2.00.0050.00217.52
8.1.340.0130.00817.71
8.1.330.0120.00716.77
8.1.320.0090.01015.92
8.1.310.0070.00316.54
8.1.300.0080.00020.31
8.1.290.0040.00730.84
8.1.280.0140.00325.92
8.1.270.0000.00918.62
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.05
8.1.230.0080.00320.96
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.48
8.1.160.0080.00021.95
8.1.150.0030.00318.80
8.1.140.0000.00717.29
8.1.130.0070.00017.88
8.1.120.0070.00017.41
8.1.110.0070.00017.32
8.1.100.0020.00517.31
8.1.90.0070.00017.33
8.1.80.0080.00017.30
8.1.70.0030.00317.28
8.1.60.0000.00817.54
8.1.50.0050.00317.48
8.1.40.0040.00417.52
8.1.30.0040.00417.55
8.1.20.0000.00717.58
8.1.10.0030.00517.50
8.1.00.0040.00417.47
8.0.300.0000.00720.10
8.0.290.0000.00816.63
8.0.280.0000.00718.35
8.0.270.0030.00317.25
8.0.260.0000.00617.25
8.0.250.0060.00016.91
8.0.240.0000.00716.88
8.0.230.0000.00816.87
8.0.220.0070.00016.80
8.0.210.0040.00416.81
8.0.200.0040.00416.75
8.0.190.0000.00716.78
8.0.180.0000.00716.88
8.0.170.0050.00316.73
8.0.160.0040.00416.88
8.0.150.0000.00816.80
8.0.140.0000.00716.68
8.0.130.0050.00013.29
8.0.120.0050.00316.77
8.0.110.0070.00016.87
8.0.100.0000.00716.65
8.0.90.0040.00416.87
8.0.80.0160.00616.70
8.0.70.0000.00716.82
8.0.60.0050.00316.67
8.0.50.0040.00416.69
8.0.30.0080.00916.96
8.0.20.0140.00917.40
8.0.10.0000.00716.76
8.0.00.0070.01116.71
7.4.330.0060.00015.03
7.4.320.0030.00316.44
7.4.300.0030.00316.62
7.4.290.0000.00716.62
7.4.280.0050.00316.44
7.4.270.0070.00016.52
7.4.260.0000.00816.59
7.4.250.0050.00216.39
7.4.240.0050.00316.62
7.4.230.0030.00316.41
7.4.220.0150.00616.59
7.4.210.0120.00316.54
7.4.200.0030.00316.50
7.4.160.0210.00016.66
7.4.150.0140.00417.40
7.4.140.0130.00817.86
7.4.130.0100.01016.42
7.4.120.0060.01116.41
7.4.110.0130.01016.38
7.4.100.0070.01016.56
7.4.90.0130.00316.36
7.4.80.0140.00319.39
7.4.70.0030.01416.56
7.4.60.0100.00716.45
7.4.50.0000.00616.38
7.4.40.0100.00716.37
7.4.30.0070.01016.28
7.4.00.0000.01515.00
7.3.330.0060.00013.32
7.3.320.0090.00613.25
7.3.310.0070.00016.31
7.3.300.0030.00316.29
7.3.290.0050.00216.16
7.3.280.0090.00716.21
7.3.270.0090.00917.40
7.3.260.0140.00316.36
7.3.250.0100.00916.33
7.3.240.0120.00416.22
7.3.230.0060.01616.50
7.3.210.0070.01016.35
7.3.200.0090.00616.52
7.3.190.0090.00616.23
7.3.180.0090.00616.34
7.3.170.0120.01216.43
7.3.160.0030.01316.21
7.3.10.0430.00616.12
7.3.00.0240.00416.43
7.2.330.0120.00716.80
7.2.320.0180.00616.75
7.2.310.0130.00416.66
7.2.300.0130.00616.57
7.2.290.0120.01016.51
7.2.130.0420.00316.35
7.2.120.0110.01116.14
7.2.110.0170.00716.67
7.2.100.0250.00016.50
7.2.90.0080.01716.23
7.2.80.0120.00816.52
7.2.70.0110.00916.31
7.2.60.0090.01016.63
7.2.50.0090.00816.65
7.2.40.0190.00016.58
7.2.30.0090.01316.70
7.2.20.0070.01316.02
7.2.10.0090.00916.09
7.2.00.0050.01017.98
7.1.250.0140.01115.89
7.1.200.0040.00815.76
7.1.100.0060.00618.33
7.1.70.0050.00316.86
7.1.60.0100.01419.50
7.1.50.0040.01816.59
7.1.00.0070.07322.44
7.0.200.0000.00716.40
7.0.140.0030.05722.12
7.0.110.0130.04320.06
7.0.100.0100.07319.93
7.0.90.0030.09019.95
7.0.80.0100.07719.93
7.0.70.0130.07720.01
7.0.60.0030.08319.95
7.0.50.0070.07320.30
7.0.40.0000.08320.27
7.0.30.0030.04720.03
7.0.20.0030.09320.19
7.0.10.0130.06720.18
7.0.00.0130.08320.18
5.6.280.0070.07021.00
5.6.260.0070.07020.68
5.6.250.0070.05320.70
5.6.240.0130.07320.73
5.6.230.0100.08020.48
5.6.220.0100.08020.68
5.6.210.0170.07020.40
5.6.200.0000.06020.96
5.6.190.0100.07721.20
5.6.180.0070.08021.07
5.6.170.0130.08321.22
5.6.160.0100.05321.15
5.6.150.0130.07321.09
5.6.140.0000.06720.96
5.6.130.0030.09321.05
5.6.120.0070.05321.09
5.6.110.0030.08321.14
5.6.100.0030.08721.11
5.6.90.0030.08720.94
5.6.80.0070.06320.66
5.6.70.0030.08320.57
5.6.60.0130.07020.30
5.6.50.0070.08020.54
5.6.40.0130.08020.32
5.6.30.0000.07720.29
5.6.20.0170.07320.31
5.6.10.0100.07720.39
5.6.00.0170.07720.56
5.5.380.0100.07320.57
5.5.370.0130.07720.55
5.5.360.0030.08020.57
5.5.350.0030.09020.46
5.5.340.0130.04320.93
5.5.330.0100.08020.71
5.5.320.0000.04320.81
5.5.310.0030.08020.87
5.5.300.0070.08320.77
5.5.290.0070.05020.87
5.5.280.0030.08021.04
5.5.270.0100.07720.86
5.5.260.0170.07720.83
5.5.250.0130.07320.58
5.5.240.0130.07020.35
5.5.230.0130.07320.40
5.5.220.0030.08320.26
5.5.210.0030.08020.29
5.5.200.0130.06320.14
5.5.190.0030.05020.20
5.5.180.0070.08320.16
5.5.160.0030.07720.39
5.5.150.0200.06020.22
5.5.140.0030.07020.24
5.5.130.0130.07720.32
5.5.120.0100.07320.30
5.5.110.0130.07020.36
5.5.100.0070.04320.04
5.5.90.0100.07320.17
5.5.80.0100.07320.15
5.5.70.0200.07020.14
5.5.60.0030.08720.02
5.5.50.0030.06020.10
5.5.40.0100.05720.26
5.5.30.0130.03720.03
5.5.20.0070.07320.15
5.5.10.0070.08019.94
5.5.00.0030.07720.19
5.4.450.0030.08019.30
5.4.440.0070.08019.34
5.4.430.0100.07719.41
5.4.420.0100.07019.27
5.4.410.0030.06719.21
5.4.400.0100.07718.99
5.4.390.0070.07319.04
5.4.380.0100.07719.34
5.4.370.0070.07719.18
5.4.360.0030.05319.14
5.4.350.0170.07019.19
5.4.340.0100.07719.09
5.4.320.0070.06719.34
5.4.310.0030.08719.23
5.4.300.0130.06319.01
5.4.290.0100.05319.01
5.4.280.0030.06319.14
5.4.270.0070.07319.23
5.4.260.0100.06718.95
5.4.250.0070.03719.24
5.4.240.0070.07019.13
5.4.230.0100.07319.33
5.4.220.0000.04019.32
5.4.210.0030.03719.33
5.4.200.0000.08719.30
5.4.190.0070.08019.18
5.4.180.0130.07019.22
5.4.170.0030.03719.17
5.4.160.0130.06019.01
5.4.150.0070.07318.93
5.4.140.0030.04016.39
5.4.130.0030.04716.53
5.4.120.0070.05316.41
5.4.110.0070.07016.36
5.4.100.0030.07316.41
5.4.90.0070.07316.55
5.4.80.0130.07016.35
5.4.70.0030.06016.25
5.4.60.0030.07316.34
5.4.50.0030.07016.48
5.4.40.0070.05316.49
5.4.30.0070.06316.47
5.4.20.0070.03316.43
5.4.10.0030.07016.38
5.4.00.0130.05315.82
5.3.290.0070.06714.68
5.3.280.0070.04314.82
5.3.270.0130.06714.63
5.3.260.0070.04014.56
5.3.250.0070.07014.63
5.3.240.0170.05314.69
5.3.230.0100.06014.61
5.3.220.0030.04714.54
5.3.210.0070.07714.58
5.3.200.0070.06314.69
5.3.190.0000.08314.65
5.3.180.0170.06314.54
5.3.170.0030.05014.69
5.3.160.0100.07314.58
5.3.150.0070.07314.61
5.3.140.0100.07714.57
5.3.130.0170.03714.69
5.3.120.0170.06714.77
5.3.110.0000.04314.77
5.3.100.0100.07014.06
5.3.90.0030.06314.01
5.3.80.0000.04314.16
5.3.70.0000.06014.15
5.3.60.0170.05314.03
5.3.50.0030.06013.96
5.3.40.0070.07313.93
5.3.30.0130.07013.90
5.3.20.0100.07013.79
5.3.10.0100.06313.67
5.3.00.0030.08013.65
5.2.170.0070.05012.25
5.2.160.0030.06312.25
5.2.150.0000.03712.25
5.2.140.0030.03712.25
5.2.130.0030.06712.25
5.2.120.0070.03712.25
5.2.110.0070.06012.25
5.2.100.0070.03312.25
5.2.90.0030.06012.25
5.2.80.0000.07012.25
5.2.70.0000.07312.25
5.2.60.0100.06012.25
5.2.50.0030.05312.25
5.2.40.0070.05712.25
5.2.30.0030.06012.25
5.2.20.0070.05712.25
5.2.10.0030.06312.25
5.2.00.0000.07012.25
5.1.60.0070.05012.25
5.1.50.0070.05312.25
5.1.40.0000.03012.25
5.1.30.0030.02712.25
5.1.20.0030.03012.25
5.1.10.0070.02712.25
5.1.00.0030.05312.25
5.0.50.0000.02712.25
5.0.40.0000.03712.25
5.0.30.0000.03712.25
5.0.20.0000.02012.25
5.0.10.0000.02312.25
5.0.00.0030.03012.25
4.4.90.0030.03712.25
4.4.80.0000.03712.25
4.4.70.0000.03712.25
4.4.60.0030.03712.25
4.4.50.0000.04012.25
4.4.40.0000.05312.25
4.4.30.0000.02012.25
4.4.20.0030.01312.25
4.4.10.0030.03312.25
4.4.00.0030.03712.25
4.3.110.0030.01312.25
4.3.100.0030.02712.25
4.3.90.0030.01312.25
4.3.80.0000.02312.25
4.3.70.0030.01312.25
4.3.60.0030.01312.25
4.3.50.0030.01012.25
4.3.40.0000.03712.25
4.3.30.0000.01312.25
4.3.20.0000.01712.25
4.3.10.0000.01712.25
4.3.00.0000.01312.25

preferences:
82.35 ms | 2291 KiB | 5 Q