3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { Protected $name; Protected $city; Protected $country; Public function __construct() { echo "At the time of creation, this constructor is called automatically. <br />"; } Public function print_introduction($name,$city,$country) { $this->name = $name; $this->city = $city; $this->country = $country; echo "My name is $this->name and i am from $this->city, $this->country. <br />"; } Public function __destruct() { echo "At last, destructor is called automatically."; } } $object = new Person(); echo $object->print_introduction("Zayn","Lahore","Pakistan"); ?>

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.0120.00318.33
8.3.50.0140.00721.95
8.3.40.0150.00018.85
8.3.30.0070.00720.16
8.3.20.0040.00420.35
8.3.10.0030.00522.14
8.3.00.0070.00322.34
8.2.180.0040.01116.32
8.2.170.0060.00922.96
8.2.160.0100.00722.25
8.2.150.0110.00724.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0110.00420.60
8.2.110.0130.00322.05
8.2.100.0060.00617.84
8.2.90.0000.00819.09
8.2.80.0030.00519.39
8.2.70.0080.00017.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0040.00419.39
8.2.20.0040.00417.64
8.2.10.0020.00517.59
8.2.00.0040.00417.56
8.1.280.0060.01025.92
8.1.270.0090.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00423.86
8.1.230.0110.00019.05
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0080.00017.41
8.1.180.0050.00318.10
8.1.170.0080.00018.51
8.1.160.0040.00418.81
8.1.150.0080.00018.50
8.1.140.0040.00417.31
8.1.130.0000.00717.90
8.1.120.0000.00717.37
8.1.110.0000.00817.29
8.1.100.0030.00417.45
8.1.90.0030.00417.38
8.1.80.0040.00417.38
8.1.70.0030.00517.34
8.1.60.0030.00617.48
8.1.50.0030.00617.52
8.1.40.0000.00817.51
8.1.30.0000.00817.58
8.1.20.0040.00417.52
8.1.10.0040.00417.65
8.1.00.0040.00417.40
8.0.300.0000.00718.77
8.0.290.0000.00817.18
8.0.280.0030.00318.36
8.0.270.0000.00717.28
8.0.260.0060.00016.88
8.0.250.0000.00716.98
8.0.240.0050.00316.96
8.0.230.0040.00416.95
8.0.220.0040.00416.86
8.0.210.0040.00416.90
8.0.200.0000.00716.96
8.0.190.0000.00817.00
8.0.180.0030.00316.90
8.0.170.0050.00316.97
8.0.160.0040.00416.92
8.0.150.0040.00416.84
8.0.140.0040.00416.88
8.0.130.0000.00513.29
8.0.120.0000.00916.82
8.0.110.0050.00216.79
8.0.100.0000.00716.76
8.0.90.0000.00716.77
8.0.80.0060.01016.86
8.0.70.0070.00016.77
8.0.60.0050.00316.77
8.0.50.0030.00516.87
8.0.30.0120.00917.16
8.0.20.0110.00817.41
8.0.10.0040.00416.98
8.0.00.0080.01316.89
7.4.330.0000.00515.01
7.4.320.0030.00316.44
7.4.300.0060.00016.60
7.4.290.0030.00316.60
7.4.280.0070.00016.49
7.4.270.0000.00716.50
7.4.260.0000.00513.31
7.4.250.0000.00816.53
7.4.240.0020.00516.43
7.4.230.0030.00316.69
7.4.220.0140.00316.69
7.4.210.0070.00916.56
7.4.200.0030.00316.36
7.4.190.0030.00316.48
7.4.160.0120.00316.34
7.4.150.0060.01217.40
7.4.140.0110.00617.86
7.4.130.0120.00416.51
7.4.120.0090.00816.46
7.4.110.0120.00616.44
7.4.100.0070.01416.52
7.4.90.0070.01016.43
7.4.80.0140.00319.39
7.4.70.0100.01016.46
7.4.60.0100.00616.45
7.4.50.0000.00816.32
7.4.40.0030.01222.77
7.4.30.0030.01316.53
7.4.00.0070.00714.76
7.3.330.0000.00513.15
7.3.320.0000.00613.02
7.3.310.0030.00316.24
7.3.300.0000.00616.30
7.3.290.0090.00616.21
7.3.280.0090.00916.21
7.3.270.0070.01017.40
7.3.260.0090.00916.61
7.3.250.0070.01016.30
7.3.240.0100.00716.36
7.3.230.0030.01416.39
7.3.210.0090.00816.16
7.3.200.0030.01419.39
7.3.190.0110.01116.28
7.3.180.0060.00916.52
7.3.170.0120.01116.34
7.3.160.0090.00616.29
7.3.120.0070.00714.76
7.3.10.0080.00616.32
7.3.00.0080.00316.38
7.2.330.0030.01616.71
7.2.320.0100.01116.70
7.2.310.0160.00016.78
7.2.300.0070.01016.83
7.2.290.0070.01416.47
7.2.130.0060.00816.92
7.2.120.0030.00816.87
7.2.110.0050.00916.99
7.2.100.0030.00916.84
7.2.90.0050.00817.04
7.2.80.0060.00716.87
7.2.70.0090.00417.11
7.2.60.0050.00716.66
7.2.50.0110.00516.96
7.2.40.0080.00316.90
7.2.30.0100.00616.97
7.2.20.0090.00516.86
7.2.10.0060.00816.96
7.2.00.0050.01016.96
7.1.250.0030.00915.51
7.1.240.0050.00315.34
7.1.230.0080.00815.54
7.1.220.0050.00515.51
7.1.210.0030.01015.44
7.1.200.0090.00415.53
7.1.190.0030.01015.58
7.1.180.0040.00715.46
7.1.170.0110.00315.85
7.1.160.0100.00715.56
7.1.150.0040.00815.77
7.1.140.0110.00315.47
7.1.130.0060.01015.67
7.1.120.0000.00915.57
7.1.110.0000.01015.59
7.1.100.0060.01215.70
7.1.90.0000.01415.57
7.1.80.0060.00615.69
7.1.70.0030.00716.39
7.1.60.0070.01317.45
7.1.50.0080.00816.13
7.1.40.0090.00315.66
7.1.30.0100.00715.59
7.1.20.0060.00915.50
7.1.10.0070.01015.54
7.1.00.0020.02318.90
7.0.330.0100.00715.41
7.0.320.0080.00415.20
7.0.310.0030.01015.35
7.0.300.0090.00015.35
7.0.290.0000.01015.40
7.0.280.0050.00515.33
7.0.270.0000.00815.06
7.0.260.0040.01415.32
7.0.250.0090.00315.12
7.0.240.0000.01215.43
7.0.230.0060.00615.40
7.0.220.0100.00315.44
7.0.210.0070.00415.53
7.0.200.0020.00615.81
7.0.190.0070.00715.42
7.0.180.0090.00315.40
7.0.170.0060.00915.38
7.0.160.0000.01215.16
7.0.150.0070.00315.33
7.0.140.0030.04218.70
7.0.130.0090.00615.07
7.0.120.0070.00715.40
7.0.110.0000.01415.27
7.0.100.0000.00915.49
7.0.90.0130.00315.21
7.0.80.0120.00615.32
7.0.70.0110.00415.57
7.0.60.0080.03717.66
7.0.50.0040.02416.66
7.0.40.0020.03116.78
7.0.30.0170.03916.87
7.0.20.0080.04216.82
7.0.10.0030.02716.93
7.0.00.0080.03616.88
5.6.380.0060.00914.50
5.6.370.0060.00914.23
5.6.360.0060.01014.33
5.6.350.0050.00814.06
5.6.340.0080.00814.47
5.6.330.0040.00714.41
5.6.320.0140.00014.62
5.6.310.0000.00914.52
5.6.300.0070.01013.96
5.6.290.0070.00714.17
5.6.280.0000.04017.89
5.6.270.0030.01314.48
5.6.260.0000.01114.30
5.6.250.0060.00614.07
5.6.240.0100.00314.36
5.6.230.0030.01014.45
5.6.220.0030.01014.43
5.6.210.0080.04217.40
5.6.200.0050.02916.16
5.6.190.0130.04217.44
5.6.180.0050.03317.39
5.6.170.0200.02717.40
5.6.160.0070.04417.47
5.6.150.0150.01816.29
5.6.140.0170.03816.31
5.6.130.0020.03016.36
5.6.120.0130.02717.57
5.6.110.0020.03017.63
5.6.100.0110.02317.44
5.6.90.0070.05017.56
5.6.80.0100.02817.23
5.6.70.0130.00314.06
5.6.60.0120.00413.83
5.6.50.0060.00914.07
5.6.40.0070.00714.04
5.6.30.0160.00613.83
5.6.20.0030.01314.35
5.6.10.0160.00314.25
5.6.00.0060.01014.15
5.5.380.0070.00311.24
5.5.370.0000.01011.40
5.5.360.0060.00011.18
5.5.350.0080.04015.80
5.5.340.0100.02514.56
5.5.330.0030.03015.68
5.5.320.0170.02315.76
5.5.310.0140.03015.84
5.5.300.0050.03714.55
5.5.290.0050.02614.70
5.5.280.0100.04016.07
5.5.270.0040.02615.91
5.5.260.0020.02415.93
5.5.250.0070.03715.82
5.5.240.0020.04615.72
5.5.230.0030.00311.18
5.5.220.0030.00911.18
5.5.210.0040.00411.18
5.5.200.0110.00411.18
5.5.190.0030.00711.29
5.5.180.0080.00011.18
5.5.170.0080.00311.18
5.5.160.0030.00311.18
5.5.150.0100.00311.18
5.5.140.0120.00011.29
5.5.130.0090.00611.18
5.5.120.0030.00611.18
5.5.110.0090.00311.18
5.5.100.0060.00711.18
5.5.90.0120.00011.24
5.5.80.0060.00611.24
5.5.70.0110.00011.19
5.5.60.0150.00411.18
5.5.50.0060.00611.33
5.5.40.0160.01011.18
5.5.30.0040.00811.28
5.5.20.0070.00311.32
5.5.10.0000.00711.18
5.5.00.0050.01011.31
5.4.450.0170.04115.22
5.4.440.0150.04115.29
5.4.430.0170.03215.24
5.4.420.0170.03715.28
5.4.410.0180.03515.19
5.4.400.0180.03015.25
5.4.390.0260.03515.07
5.4.380.0160.04315.17
5.4.370.0230.03015.25
5.4.360.0180.03715.16
5.4.350.0150.03015.08
5.4.340.0200.02215.13
5.4.330.0040.00411.18
5.4.320.0220.03215.22
5.4.310.0170.03715.16
5.4.300.0220.04015.15
5.4.290.0200.03515.08
5.4.280.0180.02715.20
5.4.270.0230.02615.14
5.4.260.0240.03515.24
5.4.250.0240.02615.19
5.4.240.0190.03415.11
5.4.230.0150.02715.15
5.4.220.0160.04015.03
5.4.210.0220.03715.16
5.4.200.0150.02215.24
5.4.190.0150.02715.19
5.4.180.0210.02815.16
5.4.170.0230.03815.16
5.4.160.0270.01815.20
5.4.150.0190.04115.19
5.4.140.0240.03513.80
5.4.130.0280.02913.79
5.4.120.0210.03713.88
5.4.110.0200.03313.81
5.4.100.0260.03313.86
5.4.90.0230.03513.80
5.4.80.0160.02213.85
5.4.70.0210.03513.85
5.4.60.0240.03313.83
5.4.50.0280.02813.85
5.4.40.0260.03013.86
5.4.30.0210.03613.76
5.4.20.0190.03313.70
5.4.10.0300.02713.87
5.4.00.0330.03013.50
5.3.290.0160.02912.98
5.3.280.0170.03512.91
5.3.270.0170.04012.85
5.3.260.0150.04113.00
5.3.250.0130.03512.95
5.3.240.0180.03112.85
5.3.230.0270.02012.97
5.3.220.0190.02612.83
5.3.210.0180.03212.83
5.3.200.0160.04012.88
5.3.190.0130.03112.95
5.3.180.0260.03512.84
5.3.170.0240.03512.84
5.3.160.0220.02712.82
5.3.150.0200.03712.85
5.3.140.0200.03212.82
5.3.130.0150.02512.92
5.3.120.0170.03312.91
5.3.110.0130.04012.90
5.3.100.0200.03812.69
5.3.90.0250.03012.56
5.3.80.0170.02612.55
5.3.70.0200.02812.60
5.3.60.0170.03512.71
5.3.50.0160.02212.62
5.3.40.0210.03512.55
5.3.30.0150.01812.51
5.3.20.0180.01912.43
5.3.10.0120.02012.43
5.3.00.0130.02012.43
5.2.170.0170.01812.43
5.2.160.0170.02012.43
5.2.150.0100.01812.43
5.2.140.0130.01612.43
5.2.130.0160.01712.43
5.2.120.0130.01712.43
5.2.110.0100.01712.43
5.2.100.0090.01812.43
5.2.90.0170.00812.43
5.2.80.0120.01512.43
5.2.70.0070.01912.43
5.2.60.0120.01512.43
5.2.50.0100.01812.43
5.2.40.0100.01812.43
5.2.30.0110.01512.43
5.2.20.0090.01512.43
5.2.10.0090.01612.43
5.2.00.0110.01312.43
5.1.60.0060.01512.43
5.1.50.0050.01612.43
5.1.40.0090.01112.43
5.1.30.0070.01512.43
5.1.20.0080.01512.43
5.1.10.0050.02012.43
5.1.00.0100.01312.43
5.0.50.0070.01212.43
5.0.40.0070.01212.43
5.0.30.0080.01512.43
5.0.20.0070.00812.43
5.0.10.0050.01212.43
5.0.00.0050.01712.43
4.4.90.0030.01012.43
4.4.80.0030.01112.43
4.4.70.0050.00812.43
4.4.60.0020.01112.43
4.4.50.0050.01012.43
4.4.40.0050.01212.43
4.4.30.0030.00912.43
4.4.20.0060.00812.43
4.4.10.0030.01112.43
4.4.00.0020.01612.43
4.3.110.0060.00812.43
4.3.100.0040.01212.43
4.3.90.0030.01112.43
4.3.80.0020.01612.43
4.3.70.0080.00812.43
4.3.60.0020.01312.43
4.3.50.0020.01112.43
4.3.40.0060.01312.43
4.3.30.0020.01112.43
4.3.20.0000.01012.43
4.3.10.0030.00812.43
4.3.00.0040.01012.43

preferences:
43.33 ms | 401 KiB | 5 Q