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($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.0030.01016.63
8.3.50.0150.00321.13
8.3.40.0110.00318.69
8.3.30.0090.00918.57
8.3.20.0000.00720.29
8.3.10.0040.00421.82
8.3.00.0080.00021.76
8.2.180.0120.00318.41
8.2.170.0120.00622.96
8.2.160.0070.00720.11
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00421.13
8.2.120.0040.00426.35
8.2.110.0030.00721.01
8.2.100.0120.00017.78
8.2.90.0000.00817.90
8.2.80.0000.00818.02
8.2.70.0040.00417.50
8.2.60.0080.00017.91
8.2.50.0090.00318.09
8.2.40.0000.00822.04
8.2.30.0080.00019.38
8.2.20.0040.00417.56
8.2.10.0040.00417.89
8.2.00.0000.00718.00
8.1.280.0000.01425.92
8.1.270.0000.00822.11
8.1.260.0040.00428.09
8.1.250.0110.00328.09
8.1.240.0100.00022.52
8.1.230.0040.00720.89
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0070.00020.63
8.1.150.0000.00718.83
8.1.140.0000.00819.52
8.1.130.0000.00717.53
8.1.120.0030.00317.38
8.1.110.0000.00717.48
8.1.100.0040.00417.34
8.1.90.0030.00517.36
8.1.80.0040.00417.27
8.1.70.0030.00317.42
8.1.60.0060.00317.58
8.1.50.0080.00017.50
8.1.40.0030.00617.56
8.1.30.0040.00417.66
8.1.20.0060.00317.56
8.1.10.0060.00317.46
8.1.00.0000.00717.45
8.0.300.0040.00419.83
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0000.00717.17
8.0.260.0060.00317.20
8.0.250.0000.00616.96
8.0.240.0070.00016.94
8.0.230.0050.00216.85
8.0.220.0070.00316.91
8.0.210.0070.00016.92
8.0.200.0040.00416.96
8.0.190.0000.00716.98
8.0.180.0000.00716.96
8.0.170.0040.00416.75
8.0.160.0000.00816.89
8.0.150.0030.00316.94
8.0.140.0040.00716.88
8.0.130.0000.00513.37
8.0.120.0040.00416.78
8.0.110.0000.00716.91
8.0.100.0070.00016.74
8.0.90.0000.00716.75
8.0.80.0100.00316.86
8.0.70.0080.00016.79
8.0.60.0070.00016.92
8.0.50.0040.00416.93
8.0.30.0090.00717.12
8.0.20.0130.00617.40
8.0.10.0040.00417.01
8.0.00.0090.00916.89
7.4.330.0050.00016.71
7.4.320.0000.00616.59
7.4.300.0030.00316.56
7.4.290.0030.00316.58
7.4.280.0000.00716.43
7.4.270.0070.00016.61
7.4.260.0030.00316.49
7.4.250.0040.00416.41
7.4.240.0070.00016.53
7.4.230.0070.00016.41
7.4.220.0080.01216.64
7.4.210.0090.01016.48
7.4.200.0070.00016.41
7.4.160.0120.00316.38
7.4.150.0100.00717.40
7.4.140.0180.00317.86
7.4.130.0120.00716.65
7.4.120.0110.00616.44
7.4.110.0060.01216.57
7.4.100.0100.00716.32
7.4.90.0090.00916.55
7.4.80.0120.00619.39
7.4.70.0090.00616.39
7.4.60.0110.00516.29
7.4.50.0090.00316.41
7.4.40.0030.01316.53
7.4.30.0130.00716.56
7.4.10.0000.01514.97
7.4.00.0090.00414.84
7.3.330.0030.00313.28
7.3.320.0030.00313.38
7.3.310.0000.00716.46
7.3.300.0030.00316.30
7.3.290.0060.01016.35
7.3.280.0070.01216.34
7.3.270.0080.00817.40
7.3.260.0070.01016.53
7.3.250.0100.00816.37
7.3.240.0060.01016.43
7.3.230.0130.01016.58
7.3.210.0030.01316.37
7.3.200.0100.00719.39
7.3.190.0080.00816.29
7.3.180.0140.00716.29
7.3.170.0130.01016.57
7.3.160.0100.01016.40
7.3.130.0040.01414.78
7.3.120.0090.00314.82
7.3.110.0100.00314.98
7.3.100.0060.00614.66
7.3.90.0100.00614.77
7.3.80.0000.01215.09
7.3.70.0120.00614.93
7.3.60.0130.00314.89
7.3.50.0080.00514.73
7.3.40.0030.01014.80
7.3.30.0070.00714.76
7.3.20.0080.00416.40
7.3.10.0030.01016.49
7.3.00.0030.00616.57
7.2.330.0070.01116.45
7.2.320.0080.01216.66
7.2.310.0150.00816.61
7.2.300.0100.00716.78
7.2.290.0000.01916.67
7.2.260.0120.00614.72
7.2.250.0090.00914.68
7.2.240.0070.01014.89
7.2.230.0060.01314.84
7.2.220.0130.00614.82
7.2.210.0100.00314.96
7.2.200.0130.00314.90
7.2.190.0100.00614.60
7.2.180.0000.01115.00
7.2.170.0040.01514.66
7.2.160.0030.01014.95
7.2.150.0070.00717.01
7.2.140.0000.01517.01
7.2.130.0120.00316.99
7.2.120.0030.00916.88
7.2.110.0040.00416.80
7.2.100.0030.01316.84
7.2.90.0040.01216.80
7.2.80.0080.00416.86
7.2.70.0000.00916.96
7.2.60.0000.01316.92
7.2.50.0050.00816.85
7.2.40.0080.00816.75
7.2.30.0060.00616.67
7.2.20.0060.00316.59
7.2.10.0000.01616.73
7.2.00.0060.00616.96
7.1.330.0060.01215.86
7.1.320.0040.01415.64
7.1.310.0000.01715.48
7.1.300.0040.00715.47
7.1.290.0060.00615.62
7.1.280.0080.00415.66
7.1.270.0030.00615.85
7.1.260.0000.01615.73
7.1.250.0000.01215.46
7.1.240.0090.00615.46
7.1.230.0060.00315.67
7.1.220.0030.01015.57
7.1.210.0000.01415.75
7.1.200.0070.00415.64
7.1.190.0080.00515.81
7.1.180.0070.00715.63
7.1.170.0070.00315.69
7.1.160.0070.00415.77
7.1.150.0000.01315.53
7.1.140.0030.00715.72
7.1.130.0090.00315.55
7.1.120.0070.00715.42
7.1.110.0030.00615.85
7.1.100.0030.00515.86
7.1.90.0000.01115.76
7.1.80.0050.00515.82
7.1.70.0070.00416.33
7.1.60.0080.01017.59
7.1.50.0020.01416.27
7.1.40.0000.01215.43
7.1.30.0030.01115.64
7.1.20.0030.00615.45
7.1.10.0000.01015.75
7.1.00.0060.04119.09
7.0.330.0060.00615.37
7.0.320.0040.01115.44
7.0.310.0040.00715.14
7.0.300.0030.00615.43
7.0.290.0050.00315.41
7.0.280.0030.01015.56
7.0.270.0060.00615.32
7.0.260.0060.00315.58
7.0.250.0030.01015.32
7.0.240.0040.00815.36
7.0.230.0040.00715.22
7.0.220.0160.00015.36
7.0.210.0070.00715.18
7.0.200.0310.00515.08
7.0.190.0090.00315.32
7.0.180.0070.00715.36
7.0.170.0080.00515.43
7.0.160.0000.00915.34
7.0.150.0060.00615.26
7.0.140.0060.00615.45
7.0.130.0070.00715.37
7.0.120.0030.01015.46
7.0.110.0070.00715.34
7.0.100.0070.00715.58
7.0.90.0100.00315.27
7.0.80.0070.00715.39
7.0.70.0040.01115.40
7.0.60.0080.04418.51
7.0.50.0090.02316.54
7.0.40.0040.02316.75
7.0.30.0120.03516.80
7.0.20.0210.04016.82
7.0.10.0120.03416.84
7.0.00.0080.04716.83
5.6.400.0040.00814.32
5.6.390.0030.01314.00
5.6.380.0100.00714.27
5.6.370.0040.01114.25
5.6.360.0030.01014.55
5.6.350.0070.00714.44
5.6.340.0070.01014.50
5.6.330.0070.00714.25
5.6.320.0030.00914.46
5.6.310.0030.00714.47
5.6.300.0000.01614.55
5.6.290.0070.00714.29
5.6.280.0070.01014.13
5.6.270.0040.00814.49
5.6.260.0070.00714.59
5.6.250.0060.00614.52
5.6.240.0030.01114.24
5.6.230.0030.01014.24
5.6.220.0110.00414.27
5.6.210.0030.04717.35
5.6.200.0050.02716.15
5.6.190.0110.04617.51
5.6.180.0120.02517.48
5.6.170.0200.04217.45
5.6.160.0070.02517.34
5.6.150.0100.03316.22
5.6.140.0030.02916.46
5.6.130.0060.02816.38
5.6.120.0070.02117.62
5.6.110.0070.04717.57
5.6.100.0030.04317.68
5.6.90.0030.03217.69
5.6.80.0080.04317.46
5.6.70.0040.00814.20
5.6.60.0100.00314.36
5.6.50.0040.01113.89
5.6.40.0000.01014.23
5.6.30.0060.00914.47
5.6.20.0040.00814.02
5.6.10.0000.01414.32
5.6.00.0040.01114.25
5.5.380.0110.00414.05
5.5.370.0000.01214.46
5.5.360.0120.00314.39
5.5.350.0070.04117.30
5.5.340.0070.03516.10
5.5.330.0080.03417.13
5.5.320.0350.03817.26
5.5.310.0100.04517.13
5.5.300.0030.02315.98
5.5.290.0090.03516.14
5.5.280.0070.02817.39
5.5.270.0020.05117.69
5.5.260.0060.03517.58
5.5.250.0030.03017.56
5.5.240.0130.04117.15
5.5.230.0070.00714.39
5.5.220.0130.00314.41
5.5.210.0000.01114.37
5.5.200.0130.00014.11
5.5.190.0030.00714.25
5.5.180.0030.01013.94
5.5.170.0060.00614.34
5.5.160.0030.00714.11
5.5.150.0060.00914.23
5.5.140.0040.01114.31
5.5.130.0030.01014.25
5.5.120.0080.00413.96
5.5.110.0040.00414.38
5.5.100.0050.00814.07
5.5.90.0130.00014.22
5.5.80.0110.00414.20
5.5.70.0000.01214.36
5.5.60.0090.00614.15
5.5.50.0100.00714.14
5.5.40.0040.00813.97
5.5.30.0030.00914.29
5.5.20.0070.00314.45
5.5.10.0110.00414.20
5.5.00.0060.00614.18

preferences:
69.73 ms | 401 KiB | 5 Q