3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MeineKlasse { private $info; public function setInfo(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(); $meine_klasse->setInfo($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.40.0150.00618.79
8.3.30.0040.01118.83
8.3.20.0000.00920.69
8.3.10.0030.00721.73
8.3.00.0040.00420.69
8.2.170.0090.00622.96
8.2.160.0110.00421.25
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00422.06
8.2.120.0040.00426.35
8.2.110.0100.00021.07
8.2.100.0090.00319.45
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0000.01017.63
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0050.00322.37
8.2.30.0040.00419.22
8.2.20.0040.00417.73
8.2.10.0040.00417.89
8.2.00.0040.00418.05
8.1.270.0040.01423.99
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0000.00823.88
8.1.230.0000.01117.45
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0040.00422.08
8.1.150.0000.00718.82
8.1.140.0070.00019.54
8.1.130.0000.00717.70
8.1.120.0000.00717.29
8.1.110.0030.00617.28
8.1.100.0000.00717.37
8.1.90.0000.00817.34
8.1.80.0000.00917.41
8.1.70.0000.00717.34
8.1.60.0000.00817.52
8.1.50.0040.00417.41
8.1.40.0060.00617.46
8.1.30.0050.00317.66
8.1.20.0050.00217.66
8.1.10.0040.00417.59
8.1.00.0040.00417.35
8.0.300.0030.00518.77
8.0.290.0050.00216.75
8.0.280.0050.00218.46
8.0.270.0030.00317.16
8.0.260.0030.00317.25
8.0.250.0060.00316.89
8.0.240.0030.00316.94
8.0.230.0070.00016.97
8.0.220.0030.00416.82
8.0.210.0000.00716.91
8.0.200.0050.00216.91
8.0.190.0040.00416.96
8.0.180.0030.00516.95
8.0.170.0040.00416.96
8.0.160.0040.00416.86
8.0.150.0030.00316.77
8.0.140.0000.00816.76
8.0.130.0060.00013.39
8.0.120.0050.00316.82
8.0.110.0020.00516.82
8.0.100.0000.00716.86
8.0.90.0030.00316.88
8.0.80.0030.01316.84
8.0.70.0040.00416.87
8.0.60.0070.00016.85
8.0.50.0030.00516.76
8.0.30.0080.01117.07
8.0.20.0110.00717.40
8.0.10.0040.00416.84
8.0.00.0170.00316.58
7.4.330.0050.00015.08
7.4.320.0000.00616.48
7.4.300.0030.00316.57
7.4.290.0040.00416.49
7.4.280.0080.00016.54
7.4.270.0040.00416.58
7.4.260.0000.00716.48
7.4.250.0040.00416.57
7.4.240.0000.00716.50
7.4.230.0040.00416.50
7.4.220.0100.00716.53
7.4.210.0130.00316.54
7.4.200.0040.00416.44
7.4.160.0020.01316.49
7.4.150.0110.00717.40
7.4.140.0110.00617.86
7.4.130.0110.01216.34
7.4.120.0140.00316.49
7.4.110.0180.00016.56
7.4.100.0100.00716.70
7.4.90.0070.01116.54
7.4.80.0070.01119.39
7.4.70.0110.01116.30
7.4.60.0120.00916.53
7.4.50.0070.00716.15
7.4.40.0170.00616.54
7.4.30.0100.00616.34
7.4.10.0100.01016.40
7.4.00.0100.00615.31
7.3.330.0030.00313.16
7.3.320.0000.00613.16
7.3.310.0000.00916.21
7.3.300.0030.00316.18
7.3.290.0000.00716.29
7.3.280.0090.00916.25
7.3.270.0110.01117.40
7.3.260.0110.01316.38
7.3.250.0120.00716.40
7.3.240.0130.00516.26
7.3.230.0100.01516.39
7.3.210.0110.00716.05
7.3.200.0110.00516.30
7.3.190.0000.01716.14
7.3.180.0030.01316.30
7.3.170.0080.00816.54
7.3.160.0130.00716.52
7.3.130.0090.00916.14
7.3.120.0070.01015.55
7.3.110.0110.00815.54
7.3.100.0080.01115.42
7.3.90.0060.00815.54
7.3.80.0110.00315.41
7.3.70.0120.00315.32
7.3.60.0000.01315.56
7.3.50.0040.00515.45
7.3.40.0050.00915.53
7.3.30.0080.00715.55
7.3.20.0080.00517.36
7.3.10.0080.00417.28
7.3.00.0070.00417.19
7.2.330.0140.00316.77
7.2.320.0090.01316.62
7.2.310.0110.00716.57
7.2.300.0100.01016.52
7.2.290.0190.00316.51
7.2.260.0100.00716.60
7.2.250.0070.01115.87
7.2.240.0030.01515.90
7.2.230.0030.01416.02
7.2.220.0080.01015.86
7.2.210.0080.00615.74
7.2.200.0030.00715.78
7.2.190.0030.01315.91
7.2.180.0000.01315.61
7.2.170.0030.00615.61
7.2.160.0130.00416.41
7.2.150.0070.01018.47
7.2.140.0030.01218.66
7.2.130.0030.01418.29
7.2.120.0070.00718.38
7.2.110.0180.00617.36
7.2.100.0030.00718.45
7.2.90.0040.01218.37
7.2.80.0070.01018.23
7.2.70.0070.00718.63
7.2.60.0070.00517.53
7.2.50.0070.01018.33
7.2.40.0110.00718.48
7.2.30.0070.00718.36
7.2.20.0000.01618.38
7.2.10.0090.00618.51
7.2.00.0070.00818.80
7.1.330.0050.00916.55
7.1.320.0050.00916.40
7.1.310.0050.00716.61
7.1.300.0070.00616.35
7.1.290.0060.00616.47
7.1.280.0080.00416.53
7.1.270.0040.01016.63
7.1.260.0070.00516.40
7.1.250.0030.00717.30
7.1.240.0050.00517.34
7.1.230.0090.00017.27
7.1.220.0120.00317.22
7.1.210.0000.00917.29
7.1.200.0030.01216.45
7.1.190.0080.00817.29
7.1.180.0070.01017.11
7.1.170.0040.00817.22
7.1.160.0070.00317.21
7.1.150.0040.01117.29
7.1.140.0030.01017.11
7.1.130.0120.00317.23
7.1.120.0030.01317.29
7.1.110.0120.00317.38
7.1.100.0070.00717.13
7.1.90.0070.01017.21
7.1.80.0000.01417.38
7.1.70.0070.00717.10
7.1.60.0070.00718.50
7.1.50.0120.00617.22
7.1.40.0070.00317.14
7.1.30.0060.00917.20
7.1.20.0030.00917.02
7.1.10.0100.01017.37
7.1.00.0090.03819.80
7.0.330.0100.01016.88
7.0.320.0100.00817.07
7.0.310.0030.01617.02
7.0.300.0090.01117.16
7.0.290.0110.00416.83
7.0.280.0120.00317.05
7.0.270.0100.00317.05
7.0.260.0030.01617.04
7.0.250.0040.01416.92
7.0.240.0050.00517.09
7.0.230.0070.00717.15
7.0.220.0060.00917.14
7.0.210.0060.00616.95
7.0.200.0180.00716.02
7.0.190.0070.00717.13
7.0.180.0040.01116.89
7.0.170.0040.01117.06
7.0.160.0060.00816.93
7.0.150.0100.00616.98
7.0.140.0070.00717.03
7.0.130.0070.00416.82
7.0.120.0070.00316.81
7.0.110.0030.01317.07
7.0.100.0050.03918.48
7.0.90.0100.03318.47
7.0.80.0080.03318.38
7.0.70.0070.03218.46
7.0.60.0070.03218.38
7.0.50.0080.03918.71
7.0.40.0080.03117.57
7.0.30.0100.03517.60
7.0.20.0090.03217.61
7.0.10.0070.03217.60
7.0.00.0080.03217.69
5.6.400.0120.00916.23
5.6.390.0000.01616.14
5.6.380.0040.01215.96
5.6.370.0140.00015.96
5.6.360.0040.01415.79
5.6.350.0100.00715.57
5.6.340.0100.00715.98
5.6.330.0070.00715.92
5.6.320.0060.01216.15
5.6.310.0070.01015.80
5.6.300.0090.00315.91
5.6.290.0000.01415.80
5.6.280.0090.00316.00
5.6.270.0040.01116.07
5.6.260.0040.01415.92
5.6.250.0080.03218.31
5.6.240.0140.02818.36
5.6.230.0180.03518.27
5.6.220.0080.03618.41
5.6.210.0030.04918.23
5.6.200.0120.04718.44
5.6.190.0120.03318.52
5.6.180.0160.03818.50
5.6.170.0080.03518.51
5.6.160.0080.03518.42
5.6.150.0020.03918.48
5.6.140.0110.02818.37
5.6.130.0040.03718.49
5.6.120.0100.03318.55
5.6.110.0090.03318.51
5.6.100.0090.03218.46
5.6.90.0030.04018.50
5.6.80.0030.03718.20
5.6.70.0030.03418.12
5.6.60.0050.03118.12
5.6.50.0080.03018.13
5.6.40.0100.03018.10
5.6.30.0070.03318.10
5.6.20.0050.03318.01
5.6.10.0090.03918.14
5.6.00.0150.03718.10

preferences:
61.34 ms | 400 KiB | 5 Q