3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MeineKlasse { private $info; public function __construct(Information $info_in) { $this->info = $info_in; } public function getNews() { echo $this->info->getInformation(); } } class Information { public function getInformation() { return "hallo"; } } $info = new Information(); $meine_klasse = new MeineKlasse($info); $meine_klasse->getNews();

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.0100.01016.50
8.3.50.0130.00821.07
8.3.40.0110.00418.64
8.3.30.0070.00718.63
8.3.20.0040.00421.03
8.3.10.0030.00621.60
8.3.00.0080.00022.28
8.2.180.0100.01016.63
8.2.170.0110.00322.96
8.2.160.0040.01321.02
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00322.13
8.2.120.0040.00426.35
8.2.110.0070.00420.89
8.2.100.0000.01219.57
8.2.90.0040.00419.18
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0030.00618.04
8.2.50.0040.00418.10
8.2.40.0030.00522.34
8.2.30.0000.00819.19
8.2.20.0050.00317.67
8.2.10.0040.00418.00
8.2.00.0070.00018.00
8.1.280.0170.00325.92
8.1.270.0040.00423.77
8.1.260.0080.00028.09
8.1.250.0020.00528.09
8.1.240.0060.00323.93
8.1.230.0120.00017.42
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0080.00018.59
8.1.160.0000.00722.05
8.1.150.0000.00718.88
8.1.140.0000.00719.52
8.1.130.0030.00517.61
8.1.120.0040.00417.44
8.1.110.0050.00217.38
8.1.100.0040.00317.45
8.1.90.0040.00417.35
8.1.80.0050.00217.30
8.1.70.0000.00717.38
8.1.60.0000.00817.55
8.1.50.0030.00617.53
8.1.40.0000.01017.41
8.1.30.0000.00817.63
8.1.20.0040.00417.60
8.1.10.0030.00617.56
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0080.00018.47
8.0.270.0030.00317.13
8.0.260.0000.00617.18
8.0.250.0080.00017.00
8.0.240.0000.00717.09
8.0.230.0070.00016.86
8.0.220.0030.00316.88
8.0.210.0070.00016.78
8.0.200.0030.00316.97
8.0.190.0070.00016.91
8.0.180.0040.00416.80
8.0.170.0040.00416.91
8.0.160.0030.00316.98
8.0.150.0040.00416.77
8.0.140.0000.00716.87
8.0.130.0000.00613.33
8.0.120.0080.00016.89
8.0.110.0000.00716.78
8.0.100.0000.00716.88
8.0.90.0040.00416.89
8.0.80.0060.01016.95
8.0.70.0000.00816.84
8.0.60.0040.00416.93
8.0.50.0050.00316.91
8.0.30.0090.01117.04
8.0.20.0100.00817.40
8.0.10.0050.00216.89
8.0.00.0030.01316.58
7.4.330.0050.00015.08
7.4.320.0000.00716.46
7.4.300.0030.00316.65
7.4.290.0040.00416.45
7.4.280.0080.00016.35
7.4.270.0000.00716.50
7.4.260.0040.00416.48
7.4.250.0000.00716.54
7.4.240.0000.00716.40
7.4.230.0000.00716.58
7.4.220.0060.01416.57
7.4.210.0050.00916.71
7.4.200.0040.00416.41
7.4.160.0070.01216.49
7.4.150.0100.00717.40
7.4.140.0080.00817.86
7.4.130.0100.00716.48
7.4.120.0060.01116.27
7.4.110.0130.00316.29
7.4.100.0100.00716.43
7.4.90.0140.00416.39
7.4.80.0090.00919.39
7.4.70.0090.01116.55
7.4.60.0100.00716.50
7.4.50.0070.00716.24
7.4.40.0100.00716.43
7.4.30.0070.01016.58
7.4.10.0050.01414.91
7.4.00.0090.00714.93
7.3.330.0020.00213.21
7.3.320.0000.00613.10
7.3.310.0030.00616.18
7.3.300.0030.00316.18
7.3.290.0070.00016.07
7.3.280.0110.00816.25
7.3.270.0130.00317.40
7.3.260.0060.01216.36
7.3.250.0090.00816.27
7.3.240.0080.01016.26
7.3.230.0070.01416.39
7.3.210.0080.01516.45
7.3.200.0080.00816.15
7.3.190.0030.01316.53
7.3.180.0090.01216.27
7.3.170.0070.01016.24
7.3.160.0130.00316.40
7.3.130.0110.00614.70
7.3.120.0080.00714.89
7.3.110.0080.00914.78
7.3.100.0080.00514.70
7.3.90.0050.00814.79
7.3.80.0000.01014.68
7.3.70.0030.01014.74
7.3.60.0070.00714.70
7.3.50.0080.00514.71
7.3.40.0080.00514.66
7.3.30.0040.00914.63
7.3.20.0070.00716.58
7.3.10.0050.00816.53
7.3.00.0080.00716.48
7.2.330.0100.00716.81
7.2.320.0070.01416.66
7.2.310.0170.00316.60
7.2.300.0030.01616.33
7.2.290.0100.01016.75
7.2.260.0070.01014.96
7.2.250.0060.00814.85
7.2.240.0070.00814.97
7.2.230.0040.01015.01
7.2.220.0040.01214.93
7.2.210.0040.01015.26
7.2.200.0100.00415.10
7.2.190.0040.01114.93
7.2.180.0060.00714.95
7.2.170.0060.00915.05
7.2.160.0080.00515.09
7.2.150.0060.00716.80
7.2.140.0090.00417.05
7.2.130.0060.00716.73
7.2.120.0090.00416.71
7.2.110.0050.00816.67
7.2.100.0110.00416.78
7.2.90.0040.00816.84
7.2.80.0080.00516.63
7.2.70.0060.00916.71
7.2.60.0070.00616.89
7.2.50.0070.00916.72
7.2.40.0070.00816.77
7.2.30.0070.01016.71
7.2.20.0070.00816.66
7.2.10.0070.00916.74
7.2.00.0070.00617.36
7.1.330.0040.01015.56
7.1.320.0050.00615.75
7.1.310.0060.00715.66
7.1.300.0050.00815.65
7.1.290.0060.00915.63
7.1.280.0080.00815.61
7.1.270.0020.01015.81
7.1.260.0040.00915.59
7.1.250.0060.00815.63
7.1.240.0070.00815.62
7.1.230.0020.01215.62
7.1.220.0030.01015.60
7.1.210.0000.01215.77
7.1.200.0100.00415.80
7.1.190.0070.00615.79
7.1.180.0060.00615.68
7.1.170.0050.00815.73
7.1.160.0110.00215.72
7.1.150.0070.00415.52
7.1.140.0030.01115.70
7.1.130.0000.01415.49
7.1.120.0030.00615.59
7.1.110.0020.01215.83
7.1.100.0020.01315.75
7.1.90.0080.00615.73
7.1.80.0040.01015.82
7.1.70.0070.00416.24
7.1.60.0190.00817.16
7.1.50.0050.00915.80
7.1.40.0030.00915.65
7.1.30.0070.00715.83
7.1.20.0050.00815.86
7.1.10.0060.00615.67
7.1.00.0010.03518.00
7.0.330.0060.00815.45
7.0.320.0100.00415.37
7.0.310.0060.00515.34
7.0.300.0030.00815.41
7.0.290.0010.01315.23
7.0.280.0060.00515.31
7.0.270.0080.00315.46
7.0.260.0020.01215.35
7.0.250.0060.00715.30
7.0.240.0050.00715.40
7.0.230.0070.00515.53
7.0.220.0060.00515.35
7.0.210.0030.01015.24
7.0.200.0070.00515.20
7.0.190.0060.00515.23
7.0.180.0050.00715.42
7.0.170.0060.00715.15
7.0.160.0100.00515.51
7.0.150.0060.00615.51
7.0.140.0020.00915.51
7.0.130.0110.00215.37
7.0.120.0060.00715.25
7.0.110.0080.00615.33
7.0.100.0320.02516.78
7.0.90.0100.02116.91
7.0.80.0080.02316.89
7.0.70.0110.02117.02
7.0.60.0070.02517.00
7.0.50.0020.02917.05
7.0.40.0130.01915.75
7.0.30.0110.02115.74
7.0.20.0080.02415.70
7.0.10.0080.02515.82
7.0.00.0100.02215.67
5.6.400.0050.00714.50
5.6.390.0110.00314.25
5.6.380.0070.00414.27
5.6.370.0020.01214.59
5.6.360.0000.01414.30
5.6.350.0020.00914.29
5.6.340.0100.00214.39
5.6.330.0030.00814.44
5.6.320.0080.00714.14
5.6.310.0020.01414.27
5.6.300.0060.00614.27
5.6.290.0050.00714.29
5.6.280.0080.00614.30
5.6.270.0080.00614.27
5.6.260.0060.00914.21
5.6.250.0100.01916.48
5.6.240.0120.01916.54
5.6.230.0100.02416.42
5.6.220.0100.02116.39
5.6.210.0040.02516.58
5.6.200.0100.02316.54
5.6.190.0040.02516.62
5.6.180.0130.02016.61
5.6.170.0090.02116.69
5.6.160.0070.02416.69
5.6.150.0070.02716.63
5.6.140.0060.02416.68
5.6.130.0110.02416.54
5.6.120.0090.02516.61
5.6.110.0090.02316.54
5.6.100.0050.02316.65
5.6.90.0140.01916.56
5.6.80.0100.02216.22
5.6.70.0090.02516.32
5.6.60.0070.02416.24
5.6.50.0110.01816.27
5.6.40.0100.02116.31
5.6.30.0070.02416.31
5.6.20.0060.02316.27
5.6.10.0120.01816.40
5.6.00.0080.02116.35

preferences:
66.32 ms | 401 KiB | 5 Q