3v4l.org

run code in 300+ PHP versions simultaneously
<?php class inject{ public function __construct(){ echo 'I say'; } } class say extends inject{ public function init(){ echo ' hello '; $this->otherFunction(); } public function otherFunction(){ parent::__construct(); echo ' world '; } } $output = new say(); echo $output->init();

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.4.130.0050.00418.03
8.4.120.0080.01220.91
8.4.110.0120.00722.24
8.4.100.0050.00417.45
8.4.90.0110.00917.75
8.4.80.0110.00919.14
8.4.70.0060.00319.45
8.4.60.0130.00819.29
8.4.50.0110.00823.93
8.4.40.0100.01019.41
8.4.30.0120.00918.67
8.4.20.0130.00620.72
8.4.10.0000.01117.59
8.3.260.0110.00816.57
8.3.250.0110.00818.69
8.3.240.0120.00716.64
8.3.230.0110.00816.50
8.3.220.0060.00418.31
8.3.210.0070.01216.64
8.3.200.0120.00616.33
8.3.190.0090.00616.49
8.3.180.0060.00218.39
8.3.170.0070.01119.07
8.3.160.0110.00718.44
8.3.150.0030.00518.30
8.3.140.0090.00617.27
8.3.130.0050.00318.42
8.3.120.0150.00420.79
8.3.110.0080.00020.94
8.3.100.0080.00024.06
8.3.90.0110.00726.77
8.3.80.0030.00716.38
8.3.70.0040.01216.58
8.3.60.0070.01018.43
8.3.50.0070.01116.51
8.3.40.0090.00918.59
8.3.30.0070.00718.68
8.3.20.0080.00021.69
8.3.10.0080.00021.91
8.3.00.0000.00723.48
8.2.290.0070.01220.40
8.2.280.0070.00517.95
8.2.270.0070.01119.11
8.2.260.0080.00816.41
8.2.250.0000.00818.54
8.2.240.0000.00819.14
8.2.230.0050.00322.58
8.2.220.0030.01237.54
8.2.210.0100.01026.77
8.2.200.0030.00618.54
8.2.190.0070.00716.58
8.2.180.0140.00725.92
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0060.00320.98
8.2.100.0070.00417.91
8.2.90.0030.00517.72
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0000.00817.36
8.2.40.0050.00319.22
8.2.30.0040.00419.32
8.2.20.0040.00418.11
8.2.10.0080.00018.72
8.2.00.0000.00719.23
8.1.330.0090.00120.38
8.1.320.0120.00716.27
8.1.310.0060.01018.67
8.1.300.0080.00018.29
8.1.290.0070.00330.84
8.1.280.0070.01325.92
8.1.270.0000.00922.50
8.1.260.0060.01226.35
8.1.250.0040.00428.09
8.1.240.0040.00419.16
8.1.230.0060.00622.43
8.1.220.0000.00817.76
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0080.00017.62
8.1.160.0040.00418.82
8.1.150.0070.00018.82
8.1.140.0000.00718.74
8.1.130.0000.00720.11
8.1.120.0070.00017.34
8.1.110.0080.00317.30
8.1.100.0000.00817.37
8.1.90.0030.00517.38
8.1.80.0000.00717.40
8.1.70.0070.00017.38
8.1.60.0040.00417.58
8.1.50.0050.00317.54
8.1.40.0030.00617.53
8.1.30.0040.00417.65
8.1.20.0000.00817.61
8.1.10.0040.00417.53
8.1.00.0040.00417.50
8.0.300.0040.00420.03
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0000.00817.31
8.0.260.0060.00018.45
8.0.250.0000.00716.98
8.0.240.0000.00816.86
8.0.230.0030.00316.80
8.0.220.0030.00316.72
8.0.210.0080.00016.83
8.0.200.0030.00316.78
8.0.190.0000.00916.88
8.0.180.0070.00016.81
8.0.170.0050.00516.84
8.0.160.0060.00316.84
8.0.150.0000.00716.86
8.0.140.0070.00016.68
8.0.130.0000.00513.21
8.0.120.0040.00416.83
8.0.110.0000.00716.77
8.0.100.0050.00216.70
8.0.90.0070.00016.96
8.0.80.0030.01316.86
8.0.70.0040.00416.71
8.0.60.0030.00516.84
8.0.50.0050.00216.82
8.0.30.0070.01117.24
8.0.20.0100.01417.25
8.0.10.0070.00016.79
8.0.00.0120.00816.67
7.4.330.0080.00015.55
7.4.320.0000.00716.54
7.4.300.0030.00316.43
7.4.290.0040.00416.46
7.4.280.0000.00716.53
7.4.270.0000.00816.66
7.4.260.0000.00716.44
7.4.250.0000.00716.48
7.4.240.0070.00016.52
7.4.230.0030.00316.61
7.4.220.0000.00716.43
7.4.210.0050.00916.57
7.4.200.0030.00316.59
7.4.160.0110.00716.50
7.4.140.0070.01017.86
7.4.130.0070.01016.44
7.4.120.0130.00916.41
7.4.110.0030.01316.57
7.4.100.0060.01516.61
7.4.90.0070.01016.71
7.4.80.0120.00419.39
7.4.70.0130.00316.65
7.4.60.0100.00716.54
7.4.50.0000.01516.41
7.4.40.0130.00416.48
7.4.10.0110.00714.98
7.4.00.0080.00914.91
7.3.330.0040.00413.10
7.3.320.0000.00513.06
7.3.310.0000.00816.26
7.3.300.0070.00016.16
7.3.290.0040.00416.24
7.3.280.0140.00916.21
7.3.260.0120.00816.27
7.3.230.0080.00816.44
7.3.210.0120.00616.54
7.3.200.0060.01516.43
7.3.190.0130.00416.59
7.3.180.0090.00616.30
7.3.170.0140.00716.19
7.3.160.0180.00616.40
7.3.130.0060.01214.36
7.3.120.0070.01114.72
7.3.110.0110.00714.75
7.3.100.0060.00814.81
7.3.90.0030.01014.94
7.3.80.0060.00814.69
7.3.70.0050.00814.67
7.3.60.0070.00714.59
7.3.50.0050.00914.75
7.3.40.0080.00514.63
7.3.30.0080.00614.68
7.3.20.0060.01016.47
7.3.10.0030.01116.53
7.3.00.0070.00916.53
7.2.330.0150.00916.57
7.2.320.0060.01216.79
7.2.310.0090.00916.60
7.2.300.0080.00916.30
7.2.290.0070.00716.54
7.2.260.0040.01514.89
7.2.250.0090.00915.02
7.2.240.0080.01014.84
7.2.230.0090.00814.94
7.2.220.0050.00914.86
7.2.210.0040.00814.94
7.2.200.0060.00814.87
7.2.190.0040.00814.93
7.2.180.0040.00614.96
7.2.170.0090.00814.85
7.2.160.0010.01515.04
7.2.150.0030.01216.86
7.2.140.0080.01016.82
7.2.130.0070.00616.91
7.2.120.0070.00916.89
7.2.110.0070.00716.84
7.2.100.0120.01016.70
7.2.90.0090.00616.71
7.2.80.0000.01416.76
7.2.70.0110.00716.85
7.2.60.0050.00816.88
7.2.50.0100.01016.90
7.2.40.0080.01116.70
7.2.30.0080.00916.64
7.2.20.0100.00916.76
7.2.10.0050.00716.80
7.2.00.0090.00316.87
7.1.330.0060.00715.64
7.1.320.0070.00615.67
7.1.310.0050.01015.61
7.1.300.0050.00715.53
7.1.290.0050.00915.66
7.1.280.0060.00715.64
7.1.270.0040.00915.54
7.1.260.0080.00715.64
7.1.250.0060.00615.67
7.1.240.0130.00015.62
7.1.230.0090.00615.41
7.1.220.0040.01115.63
7.1.210.0030.00915.52
7.1.200.0000.01515.64
7.1.190.0100.00315.55
7.1.180.0030.01015.68
7.1.170.0030.01215.55
7.1.160.0070.00715.61
7.1.150.0080.00415.62
7.1.140.0000.01315.57
7.1.130.0040.00815.46
7.1.120.0000.01515.50
7.1.110.0030.01015.58
7.1.100.0030.01015.77
7.1.90.0060.00915.67
7.1.80.0000.00915.67
7.1.70.0000.00915.41
7.1.60.0030.01015.68
7.1.50.0070.00715.39
7.1.40.0000.01515.61
7.1.30.0000.01315.22
7.1.20.0100.00315.64
7.1.10.0040.00815.44
7.1.00.0000.01715.80

preferences:
28.32 ms | 403 KiB | 5 Q