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("bla"); var_dump();

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.0120.00316.75
8.3.50.0110.00416.50
8.3.40.0150.00018.75
8.3.30.0120.00318.68
8.3.20.0080.00020.34
8.3.10.0030.00521.87
8.3.00.0000.00821.90
8.2.180.0150.00018.66
8.2.170.0070.00722.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.78
8.2.120.0050.00326.35
8.2.110.0090.00022.31
8.2.100.0080.00417.91
8.2.90.0000.00917.78
8.2.80.0040.00418.03
8.2.70.0050.00517.63
8.2.60.0040.00417.55
8.2.50.0040.00918.09
8.2.40.0030.00622.23
8.2.30.0080.00019.38
8.2.20.0040.00417.69
8.2.10.0000.00718.00
8.2.00.0000.00718.00
8.1.280.0110.00325.92
8.1.270.0000.00822.19
8.1.260.0040.00428.09
8.1.250.0070.00728.09
8.1.240.0060.00322.58
8.1.230.0080.00322.63
8.1.220.0050.00317.74
8.1.210.0000.00818.96
8.1.200.0060.00317.22
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0030.00620.71
8.1.150.0040.00418.82
8.1.140.0060.00319.39
8.1.130.0000.00717.65
8.1.120.0000.00717.41
8.1.110.0040.00417.32
8.1.100.0030.00517.41
8.1.90.0030.00617.39
8.1.80.0040.00717.42
8.1.70.0030.00317.39
8.1.60.0090.00017.57
8.1.50.0060.00317.53
8.1.40.0040.00417.49
8.1.30.0060.00317.71
8.1.20.0050.00217.54
8.1.10.0040.00417.63
8.1.00.0000.00817.36
8.0.300.0000.00719.89
8.0.290.0070.00016.75
8.0.280.0000.00718.35
8.0.270.0000.00717.13
8.0.260.0060.00317.06
8.0.250.0060.00017.01
8.0.240.0030.00316.85
8.0.230.0030.00317.04
8.0.220.0060.00316.91
8.0.210.0050.00316.93
8.0.200.0040.00416.84
8.0.190.0020.00516.94
8.0.180.0040.00416.80
8.0.170.0000.00716.96
8.0.160.0000.00716.85
8.0.150.0000.00816.73
8.0.140.0060.00316.89
8.0.130.0050.00013.30
8.0.120.0080.00016.91
8.0.110.0040.00416.79
8.0.100.0020.00517.01
8.0.90.0050.00316.75
8.0.80.0070.00716.89
8.0.70.0080.00016.78
8.0.60.0040.00416.70
8.0.50.0070.00016.96
8.0.30.0090.01117.10
8.0.20.0090.00817.40
8.0.10.0040.00416.96
8.0.00.0090.00916.85
7.4.330.0000.00516.83
7.4.320.0030.00316.39
7.4.300.0000.00716.50
7.4.290.0030.00316.61
7.4.280.0000.00716.47
7.4.270.0030.00316.57
7.4.260.0000.00616.51
7.4.250.0000.00716.54
7.4.240.0050.00316.61
7.4.230.0000.00716.39
7.4.220.0150.00316.54
7.4.210.0060.01316.65
7.4.200.0030.00316.71
7.4.160.0160.00316.37
7.4.150.0120.00617.40
7.4.140.0110.01317.86
7.4.130.0080.01016.47
7.4.120.0080.00916.58
7.4.110.0090.00916.34
7.4.100.0120.00616.62
7.4.90.0100.00716.43
7.4.80.0120.00619.39
7.4.70.0120.00416.43
7.4.60.0080.00916.59
7.4.50.0030.01416.39
7.4.40.0030.01316.41
7.4.30.0120.00616.35
7.4.00.0030.01015.04
7.3.330.0060.00013.18
7.3.320.0020.00213.43
7.3.310.0030.00316.24
7.3.300.0070.00016.40
7.3.290.0050.01016.35
7.3.280.0090.01116.41
7.3.270.0040.01317.40
7.3.260.0140.00416.51
7.3.250.0100.00816.41
7.3.240.0130.00816.43
7.3.230.0080.00816.46
7.3.210.0060.01016.27
7.3.200.0060.01219.39
7.3.190.0130.00316.44
7.3.180.0110.01016.35
7.3.170.0030.01316.70
7.3.160.0080.01116.54
7.2.330.0090.01016.36
7.2.320.0070.01316.46
7.2.310.0090.00916.67
7.2.300.0130.00616.53
7.2.290.0030.01616.60
7.2.80.0090.00916.80
7.2.60.0090.00616.80
7.2.00.0030.01019.28
7.1.200.0000.01215.74
7.1.100.0130.00917.98
7.1.70.0000.00917.13
7.1.60.0030.02119.40
7.1.50.0000.01916.64
7.1.00.0030.07322.33
7.0.200.0320.00014.57
7.0.60.0130.08721.87
7.0.50.0070.06017.86
7.0.40.0030.05320.24
7.0.30.0170.04720.07
7.0.20.0370.03720.33
7.0.10.0070.04020.09
7.0.00.0070.04320.19
5.6.210.0100.08320.57
5.6.200.0100.04318.17
5.6.190.0100.07320.68
5.6.180.0300.07720.64
5.6.170.0370.04320.56
5.6.160.0100.04720.46
5.6.150.0100.06718.28
5.6.140.0030.07718.14
5.6.130.0030.08018.29
5.6.120.0030.04021.00
5.6.110.0100.07321.00
5.6.100.0030.08721.02
5.6.90.0100.06721.02
5.6.80.0100.07720.41
5.5.350.0030.06720.43
5.5.340.0030.08018.02
5.5.330.0130.06720.21
5.5.320.0600.07320.24
5.5.310.0230.07720.35
5.5.300.0000.04317.92
5.5.290.0070.05017.94
5.5.280.0030.07320.74
5.5.270.0070.05320.65
5.5.260.0030.09020.87
5.5.250.0100.07320.50
5.5.240.0100.07320.27

preferences:
37.35 ms | 400 KiB | 5 Q