3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(){ $this->bla = "fooooo"; } public function __invoke($arg){ $this->bla = $arg + $this->bla; } } Class Foo2 extends Foo { } $blubb = new Foo(); $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.60.0090.00616.63
8.3.50.0110.00621.14
8.3.40.0140.00318.75
8.3.30.0000.01418.88
8.3.20.0060.00320.39
8.3.10.0000.00723.48
8.3.00.0000.01021.81
8.2.180.0060.01016.75
8.2.170.0110.00622.96
8.2.160.0110.00320.32
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00020.97
8.2.120.0000.00726.35
8.2.110.0060.00320.95
8.2.100.0110.00017.61
8.2.90.0030.00618.16
8.2.80.0030.00519.76
8.2.70.0080.00017.91
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0040.00419.14
8.2.30.0050.00321.03
8.2.20.0070.00017.58
8.2.10.0070.00017.95
8.2.00.0040.00417.99
8.1.280.0100.01025.92
8.1.270.0040.00422.10
8.1.260.0040.00728.09
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0040.00820.74
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0080.00017.11
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.57
8.1.160.0040.00418.87
8.1.150.0040.00420.61
8.1.140.0060.00319.43
8.1.130.0000.00717.55
8.1.120.0000.00717.45
8.1.110.0040.00417.36
8.1.100.0080.00017.39
8.1.90.0080.00017.37
8.1.80.0040.00717.43
8.1.70.0080.00017.38
8.1.60.0040.00417.50
8.1.50.0030.00617.42
8.1.40.0030.00617.54
8.1.30.0000.00817.54
8.1.20.0040.00417.61
8.1.10.0080.00017.50
8.1.00.0000.00817.51
8.0.300.0000.00719.82
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0070.00017.11
8.0.260.0040.00417.17
8.0.250.0000.00717.01
8.0.240.0000.00717.00
8.0.230.0040.00416.83
8.0.220.0040.00416.78
8.0.210.0000.00716.93
8.0.200.0000.00716.91
8.0.190.0040.00416.95
8.0.180.0040.00416.95
8.0.170.0040.00416.93
8.0.160.0000.00816.80
8.0.150.0000.00716.78
8.0.140.0030.00616.72
8.0.130.0000.00513.30
8.0.120.0060.00316.87
8.0.110.0070.00016.96
8.0.100.0000.00716.84
8.0.90.0000.00716.89
8.0.80.0100.00316.84
8.0.70.0050.00216.75
8.0.60.0000.00716.91
8.0.50.0050.00216.80
8.0.30.0070.01016.94
8.0.20.0070.01217.40
8.0.10.0000.00817.02
8.0.00.0060.01516.91
7.4.330.0050.00016.81
7.4.320.0000.00616.47
7.4.300.0070.00016.45
7.4.290.0000.00816.36
7.4.280.0000.00716.39
7.4.270.0060.00016.44
7.4.260.0070.00016.55
7.4.250.0040.00416.62
7.4.240.0040.00416.51
7.4.230.0070.00016.64
7.4.220.0070.01816.57
7.4.210.0040.01116.40
7.4.200.0030.00316.48
7.4.160.0060.00916.39
7.4.150.0110.01217.40
7.4.140.0140.01117.86
7.4.130.0060.01116.49
7.4.120.0090.01116.46
7.4.110.0120.00616.50
7.4.100.0120.01216.49
7.4.90.0080.01116.42
7.4.80.0140.00619.39
7.4.70.0080.00816.59
7.4.60.0080.00816.49
7.4.50.0060.00916.40
7.4.40.0120.00416.46
7.4.30.0100.00716.43
7.4.00.0070.01114.86
7.3.330.0000.00513.22
7.3.320.0000.00613.43
7.3.310.0050.00216.26
7.3.300.0060.00016.30
7.3.290.0110.00816.30
7.3.280.0110.00716.38
7.3.270.0110.01117.40
7.3.260.0080.00816.34
7.3.250.0100.01016.30
7.3.240.0100.00816.42
7.3.230.0090.01316.43
7.3.210.0070.01016.30
7.3.200.0160.01019.39
7.3.190.0100.00716.48
7.3.180.0160.00016.41
7.3.170.0000.02216.53
7.3.160.0120.00416.46
7.2.330.0100.00716.71
7.2.320.0070.01116.48
7.2.310.0090.01216.64
7.2.300.0060.00916.70
7.2.290.0150.00916.82
7.2.60.0040.00716.79
7.2.00.0000.01019.47
7.1.200.0000.01415.59
7.1.100.0060.00918.22
7.1.70.0070.01017.02
7.1.60.0090.01519.40
7.1.50.0030.01916.84
7.1.00.0030.07722.39
7.0.200.0640.00314.68
7.0.60.0300.07021.87
7.0.50.0170.05317.72
7.0.40.0000.04719.96
7.0.30.0200.06320.17
7.0.20.0230.06720.21
7.0.10.0100.07720.04
7.0.00.0000.09020.15
5.6.210.0030.07020.77
5.6.200.0100.07718.12
5.6.190.0070.05720.33
5.6.180.0330.06020.49
5.6.170.0330.07020.54
5.6.160.0070.08320.48
5.6.150.0170.07718.29
5.6.140.0100.08018.18
5.6.130.0030.06718.19
5.6.120.0030.06721.04
5.6.110.0230.07021.02
5.6.100.0070.06321.09
5.6.90.0200.07020.99
5.6.80.0100.07320.43
5.5.350.0100.07720.50
5.5.340.0070.07017.97
5.5.330.0070.08320.42
5.5.320.0630.06020.22
5.5.310.0300.05020.34
5.5.300.0130.06717.95
5.5.290.0070.04018.04
5.5.280.0230.06320.77
5.5.270.0000.05720.87
5.5.260.0270.06720.65
5.5.250.0030.04020.80
5.5.240.0100.04020.33

preferences:
51.35 ms | 401 KiB | 5 Q