3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $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.40.0070.01118.96
8.3.30.0060.00918.79
8.3.20.0040.00420.38
8.3.10.0000.00821.77
8.3.00.0040.00423.55
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00321.14
8.2.120.0040.00426.35
8.2.110.0000.00919.16
8.2.100.0060.00617.91
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0080.00017.90
8.2.50.0090.00318.09
8.2.40.0000.00922.17
8.2.30.0030.00619.45
8.2.20.0000.00717.74
8.2.10.0040.00417.97
8.2.00.0050.00217.99
8.1.270.0030.00623.85
8.1.260.0070.00028.09
8.1.250.0070.00728.09
8.1.240.0060.00321.92
8.1.230.0120.00017.71
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.13
8.1.190.0050.00317.10
8.1.180.0000.00918.10
8.1.170.0090.00018.59
8.1.160.0080.00020.68
8.1.150.0030.00518.87
8.1.140.0040.00419.48
8.1.130.0070.00017.69
8.1.120.0030.00317.38
8.1.110.0040.00417.44
8.1.100.0050.00217.45
8.1.90.0070.00017.30
8.1.80.0100.00017.45
8.1.70.0000.00717.32
8.1.60.0000.00717.61
8.1.50.0090.00017.46
8.1.40.0030.00617.55
8.1.30.0040.00417.58
8.1.20.0000.00817.50
8.1.10.0050.00317.46
8.1.00.0040.00417.50
8.0.300.0040.00418.84
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0000.00816.84
8.0.260.0040.00717.10
8.0.250.0000.00716.91
8.0.240.0000.00716.88
8.0.230.0000.00716.95
8.0.220.0000.01016.76
8.0.210.0030.00316.89
8.0.200.0030.00616.95
8.0.190.0030.00517.00
8.0.180.0080.00016.91
8.0.170.0040.00416.88
8.0.160.0000.00716.94
8.0.150.0000.00716.84
8.0.140.0090.00016.91
8.0.130.0000.00513.34
8.0.120.0040.00416.86
8.0.110.0000.00716.79
8.0.100.0040.00416.82
8.0.90.0000.00716.86
8.0.80.0110.00416.88
8.0.70.0000.00716.84
8.0.60.0050.00216.84
8.0.50.0000.00716.80
8.0.30.0030.01417.21
8.0.20.0140.00717.40
8.0.10.0000.00817.02
8.0.00.0090.00916.66
7.4.330.0020.00216.85
7.4.320.0000.00616.44
7.4.300.0040.00416.46
7.4.290.0030.00316.64
7.4.280.0040.00416.51
7.4.270.0030.00616.63
7.4.260.0070.00016.50
7.4.250.0070.00016.50
7.4.240.0030.00316.51
7.4.230.0000.00716.63
7.4.220.0110.00716.50
7.4.210.0070.00716.65
7.4.200.0000.00716.72
7.4.160.0060.00916.27
7.4.150.0080.01117.40
7.4.140.0130.00817.86
7.4.130.0120.00516.58
7.4.120.0100.00716.47
7.4.110.0140.00416.48
7.4.100.0140.00416.57
7.4.90.0100.00716.68
7.4.80.0040.01319.39
7.4.70.0100.00616.44
7.4.60.0070.01016.36
7.4.50.0040.00716.58
7.4.40.0090.00616.34
7.4.30.0070.01016.59
7.4.00.0000.01815.15
7.3.330.0050.00013.32
7.3.320.0000.00613.38
7.3.310.0000.00716.34
7.3.300.0000.00716.30
7.3.290.0090.00616.38
7.3.280.0090.01116.36
7.3.270.0060.01117.40
7.3.260.0070.01016.36
7.3.250.0090.01216.50
7.3.240.0080.01116.40
7.3.230.0100.00716.39
7.3.210.0070.01016.39
7.3.200.0100.01019.39
7.3.190.0100.00616.29
7.3.180.0080.00816.66
7.3.170.0060.01216.63
7.3.160.0120.00616.39
7.2.330.0110.00616.78
7.2.320.0090.00916.74
7.2.310.0100.00616.60
7.2.300.0090.01216.74
7.2.290.0160.00916.41
7.2.60.0030.01116.79
7.2.00.0100.00319.20
7.1.200.0080.00015.68
7.1.100.0070.01518.18
7.1.70.0030.00617.31
7.1.60.0200.00319.40
7.1.50.0070.01016.60
7.1.00.0070.07322.45
7.0.200.0830.00314.78
7.0.60.0130.05321.73
7.0.50.0130.07317.86
7.0.40.0100.09020.14
7.0.30.0300.04720.13
7.0.20.0230.08720.07
7.0.10.0070.08320.09
7.0.00.0070.08320.08
5.6.210.0170.05020.65
5.6.200.0100.07318.19
5.6.190.0100.07020.34
5.6.180.0470.05320.63
5.6.170.0370.07720.55
5.6.160.0070.04020.46
5.6.150.0130.07718.18
5.6.140.0000.05018.15
5.6.130.0030.08718.28
5.6.120.0070.04021.13
5.6.110.0030.07320.98
5.6.100.0070.09020.98
5.6.90.0030.05720.88
5.6.80.0030.08320.47
5.5.350.0100.08020.42
5.5.340.0070.05717.95
5.5.330.0130.07720.57
5.5.320.0600.06720.28
5.5.310.0270.04320.41
5.5.300.0030.04017.92
5.5.290.0070.08017.92
5.5.280.0100.05720.97
5.5.270.0170.07320.82
5.5.260.0070.08020.84
5.5.250.0070.03720.59
5.5.240.0130.08320.16

preferences:
47.15 ms | 400 KiB | 5 Q