3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bla = ''; public function __construct(){ $this->bla = "fooooo"; } public function __invoke($arg){ $this->bla = $arg + $this->bla; } } Class Foo2 extends Foo { } $blubb = new Foo2(); $blubb("bl0a"); var_dump($blubb);

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.70.0060.01218.43
8.3.60.0110.00416.63
8.3.50.0120.00621.06
8.3.40.0110.00718.92
8.3.30.0070.01018.82
8.3.20.0080.00020.16
8.3.10.0040.00421.77
8.3.00.0040.00423.68
8.2.180.0140.00716.63
8.2.170.0030.01522.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00420.96
8.2.120.0040.00426.35
8.2.110.0050.00319.32
8.2.100.0060.00617.80
8.2.90.0070.00019.22
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0050.00317.93
8.2.50.0040.00818.09
8.2.40.0030.00622.37
8.2.30.0050.00219.44
8.2.20.0000.00817.57
8.2.10.0000.00717.88
8.2.00.0000.00718.04
8.1.280.0140.00725.92
8.1.270.0000.00821.98
8.1.260.0070.00028.09
8.1.250.0090.00628.09
8.1.240.0090.00022.01
8.1.230.0070.00317.76
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0080.00017.47
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0020.00520.67
8.1.150.0040.00418.75
8.1.140.0000.00819.56
8.1.130.0030.00317.66
8.1.120.0000.00717.32
8.1.110.0030.00517.32
8.1.100.0040.00417.38
8.1.90.0040.00417.44
8.1.80.0030.00617.29
8.1.70.0000.00717.29
8.1.60.0070.00017.60
8.1.50.0060.00317.42
8.1.40.0000.00817.57
8.1.30.0000.00817.73
8.1.20.0000.00817.54
8.1.10.0000.00817.59
8.1.00.0030.00517.40
8.0.300.0030.00618.77
8.0.290.0030.00516.59
8.0.280.0000.00818.39
8.0.270.0040.00417.25
8.0.260.0050.00317.16
8.0.250.0000.00616.93
8.0.240.0070.00017.01
8.0.230.0030.00316.99
8.0.220.0030.00716.89
8.0.210.0040.00416.91
8.0.200.0060.00316.95
8.0.190.0070.00016.92
8.0.180.0000.00716.93
8.0.170.0040.00416.93
8.0.160.0000.00716.95
8.0.150.0000.00716.88
8.0.140.0100.00016.77
8.0.130.0030.00313.35
8.0.120.0040.00416.80
8.0.110.0080.00016.74
8.0.100.0040.00416.78
8.0.90.0000.00717.02
8.0.80.0070.01016.82
8.0.70.0030.00516.77
8.0.60.0070.00016.82
8.0.50.0040.00416.80
8.0.30.0130.00617.29
8.0.20.0120.01017.40
8.0.10.0050.00317.00
8.0.00.0120.00616.78
7.4.330.0050.00016.77
7.4.320.0030.00316.54
7.4.300.0000.01016.43
7.4.290.0020.00516.60
7.4.280.0050.00316.60
7.4.270.0080.00016.59
7.4.260.0000.00716.55
7.4.250.0040.00416.47
7.4.240.0030.00316.46
7.4.230.0070.00016.54
7.4.220.0160.00416.54
7.4.210.0060.01316.59
7.4.200.0040.00416.45
7.4.160.0060.00916.55
7.4.150.0110.00817.40
7.4.140.0080.01417.86
7.4.130.0070.01016.48
7.4.120.0110.00616.46
7.4.110.0060.01616.43
7.4.100.0090.00916.39
7.4.90.0170.00016.56
7.4.80.0100.01319.39
7.4.70.0090.00616.41
7.4.60.0100.00716.55
7.4.50.0090.00616.54
7.4.40.0120.00316.56
7.4.30.0060.01616.50
7.4.10.0110.00716.23
7.4.00.0070.00915.54
7.3.330.0000.00613.40
7.3.320.0030.00313.18
7.3.310.0050.00316.38
7.3.300.0030.00316.36
7.3.290.0030.01316.33
7.3.280.0080.00816.33
7.3.270.0030.01417.40
7.3.260.0090.00916.34
7.3.250.0130.00716.41
7.3.240.0140.00616.48
7.3.230.0190.00316.55
7.3.210.0100.00716.34
7.3.200.0100.01019.39
7.3.190.0170.00016.43
7.3.180.0090.00916.41
7.3.170.0060.01516.33
7.3.160.0090.00616.35
7.3.130.0040.01516.39
7.3.120.0100.00716.41
7.3.110.0070.00716.50
7.3.100.0000.01116.38
7.3.90.0090.00616.55
7.3.80.0070.01016.41
7.3.70.0110.00416.18
7.3.60.0000.01616.27
7.3.50.0090.00016.34
7.3.40.0060.00916.36
7.3.30.0130.00016.30
7.3.20.0080.00818.19
7.3.10.0060.01017.48
7.3.00.0100.00517.44
7.2.330.0150.00316.43
7.2.320.0180.00316.84
7.2.310.0130.00316.73
7.2.300.0060.01216.56
7.2.290.0100.01316.79
7.2.260.0090.00916.60
7.2.250.0040.01816.54
7.2.240.0070.00716.61
7.2.230.0080.00316.71
7.2.220.0000.01016.63
7.2.210.0090.00316.54
7.2.200.0000.01516.46
7.2.190.0030.01016.68
7.2.180.0030.01016.35
7.2.170.0130.00016.71
7.2.160.0060.00616.55
7.2.150.0030.01418.39
7.2.140.0030.01418.48
7.2.130.0040.00917.61
7.2.120.0030.00817.58
7.2.110.0070.00517.71
7.2.100.0050.00917.61
7.2.90.0040.00917.52
7.2.80.0040.01017.26
7.2.70.0090.00517.67
7.2.60.0030.01317.25
7.2.50.0060.00717.67
7.2.40.0050.00917.79
7.2.30.0050.01017.73
7.2.20.0030.01017.67
7.2.10.0040.00917.56
7.2.00.0080.00618.21
7.1.330.0090.00617.30
7.1.320.0060.00617.42
7.1.310.0110.00717.38
7.1.300.0090.00017.53
7.1.290.0000.01317.23
7.1.280.0030.01017.52
7.1.270.0060.00917.21
7.1.260.0070.00317.22
7.1.250.0060.00716.36
7.1.240.0060.00617.27
7.1.230.0120.00317.38
7.1.220.0030.00917.38
7.1.210.0040.01117.29
7.1.200.0070.00616.35
7.1.190.0000.01517.38
7.1.180.0090.01017.19
7.1.170.0040.00817.33
7.1.160.0080.00817.34
7.1.150.0030.01117.12
7.1.140.0110.00417.23
7.1.130.0000.01217.14
7.1.120.0130.00017.29
7.1.110.0030.01017.20
7.1.100.0100.00817.70
7.1.90.0040.00817.34
7.1.80.0000.01017.21
7.1.70.0020.00717.25
7.1.60.0050.01318.36
7.1.50.0070.00717.08
7.1.40.0090.00017.36
7.1.30.0040.00817.26
7.1.20.0090.00617.32
7.1.10.0100.00717.20
7.1.00.0020.04619.90
7.0.330.0040.01517.06
7.0.320.0070.00316.96
7.0.310.0000.01217.27
7.0.300.0040.00816.98
7.0.290.0070.01116.98
7.0.280.0040.00717.11
7.0.270.0070.00717.00
7.0.260.0100.00317.10
7.0.250.0080.00316.92
7.0.240.0100.00017.13
7.0.230.0040.00816.89
7.0.220.0000.00917.06
7.0.210.0000.00917.11
7.0.200.0260.00715.71
7.0.190.0000.01017.05
7.0.180.0030.00617.00
7.0.170.0030.01016.99
7.0.160.0040.00817.18
7.0.150.0040.01117.06
7.0.140.0060.00917.07
7.0.130.0100.00016.89
7.0.120.0080.00816.86
7.0.110.0040.01217.19
7.0.100.0030.01016.98
7.0.90.0030.00616.95
7.0.80.0110.00417.10
7.0.70.0000.01017.06
7.0.60.0080.04019.45
7.0.50.0080.04317.39
7.0.40.0050.02717.58
7.0.30.0180.04017.55
7.0.20.0200.03817.56
7.0.10.0090.04517.57
7.0.00.0100.04417.57
5.6.400.0030.00715.87
5.6.390.0060.00915.65
5.6.380.0030.00615.99
5.6.370.0040.00815.89
5.6.360.0110.00415.73
5.6.350.0040.00816.06
5.6.340.0060.01016.08
5.6.330.0030.00915.67
5.6.320.0110.00015.92
5.6.310.0070.01016.00
5.6.300.0030.01315.94
5.6.290.0060.01315.98
5.6.280.0090.00315.64
5.6.270.0000.01515.74
5.6.260.0040.01115.88
5.6.250.0030.01015.85
5.6.240.0070.01015.83
5.6.230.0060.00615.88
5.6.220.0040.00715.86
5.6.210.0050.04818.22
5.6.200.0080.04316.99
5.6.190.0090.03518.37
5.6.180.0200.03618.23
5.6.170.0180.04218.28
5.6.160.0010.02518.12
5.6.150.0080.04317.04
5.6.140.0050.04517.11
5.6.130.0030.03017.04
5.6.120.0030.02718.28
5.6.110.0080.04218.54
5.6.100.0120.04318.59
5.6.90.0050.04518.55
5.6.80.0130.04018.18
5.6.70.0080.00615.90
5.6.60.0040.00815.66
5.6.50.0090.00615.58
5.6.40.0030.01216.00
5.6.30.0030.01215.78
5.6.20.0060.01015.71
5.6.10.0070.00715.75
5.6.00.0090.00615.92
5.5.380.0090.00615.81
5.5.370.0070.00715.77
5.5.360.0060.00615.96
5.5.350.0050.04618.03
5.5.340.0080.02816.87
5.5.330.0070.02917.99
5.5.320.0410.03518.03
5.5.310.0200.03818.04
5.5.300.0020.02616.91
5.5.290.0060.02816.89
5.5.280.0070.04518.31
5.5.270.0070.03518.38
5.5.260.0130.04018.42
5.5.250.0070.02218.14
5.5.240.0130.03318.12
5.5.230.0060.01215.70
5.5.220.0080.00615.84
5.5.210.0070.00615.82
5.5.200.0100.00715.71
5.5.190.0120.00615.96
5.5.180.0070.00715.80
5.5.170.0060.00615.74
5.5.160.0060.00915.50
5.5.150.0030.00915.84
5.5.140.0040.01115.57
5.5.130.0060.00615.74
5.5.120.0090.00615.88
5.5.110.0000.01015.67
5.5.100.0060.01215.77
5.5.90.0070.00715.70
5.5.80.0030.01315.74
5.5.70.0040.01515.52
5.5.60.0040.00716.01
5.5.50.0060.00615.93
5.5.40.0030.00915.35
5.5.30.0030.00915.51
5.5.20.0060.01015.58
5.5.10.0100.00715.66
5.5.00.0130.00315.73

preferences:
58.29 ms | 401 KiB | 5 Q