3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { private $string; private $int; private $bool; function __construct() { $this->string = "Nabir"; $this->int = 19; $this->bool = true; } function printDetails() { return printf("Hello! My name is %s, I am %d years old and it is %b (0 = false, 1 = true) that I am a male.", $this->string, $this->int, $this->bool); } } $instance = new Example(); echo $instance->printDetails(); ?>

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.0060.00918.43
8.3.50.0080.00922.11
8.3.40.0140.00718.54
8.3.30.0030.01020.38
8.3.20.0110.01120.25
8.3.10.0000.00822.04
8.3.00.0030.00622.57
8.2.180.0100.01016.61
8.2.170.0140.00322.96
8.2.160.0070.00722.08
8.2.150.0050.00324.18
8.2.140.0110.00724.66
8.2.130.0000.00826.16
8.2.120.0050.00317.63
8.2.110.0100.00022.25
8.2.100.0070.00417.66
8.2.90.0000.00918.98
8.2.80.0040.00419.09
8.2.70.0000.01017.63
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0040.00418.16
8.2.30.0000.00717.99
8.2.20.0030.00517.67
8.2.10.0080.00017.63
8.2.00.0030.00617.48
8.1.280.0110.00825.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0150.00623.89
8.1.230.0080.00320.79
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0000.00817.53
8.1.180.0030.00618.89
8.1.170.0000.00918.72
8.1.160.0070.00018.83
8.1.150.0040.00418.64
8.1.140.0030.00617.44
8.1.130.0040.00417.88
8.1.120.0000.00717.39
8.1.110.0000.00717.43
8.1.100.0040.00417.39
8.1.90.0000.00717.32
8.1.80.0070.00317.41
8.1.70.0080.00017.36
8.1.60.0040.00417.64
8.1.50.0040.00417.51
8.1.40.0070.00017.50
8.1.30.0050.00217.61
8.1.20.0000.00917.64
8.1.10.0000.00817.49
8.1.00.0070.00417.46
8.0.300.0050.00218.77
8.0.290.0000.00717.18
8.0.280.0070.00018.45
8.0.270.0000.00717.21
8.0.260.0060.00016.84
8.0.250.0040.00416.97
8.0.240.0000.00816.87
8.0.230.0000.00716.89
8.0.220.0040.00416.84
8.0.210.0000.00716.81
8.0.200.0040.00416.88
8.0.190.0000.00816.88
8.0.180.0040.00416.77
8.0.170.0000.00816.75
8.0.160.0050.00216.76
8.0.150.0040.00416.89
8.0.140.0050.00216.72
8.0.130.0060.00013.36
8.0.120.0040.00416.78
8.0.110.0000.00716.78
8.0.100.0070.00016.90
8.0.90.0000.00716.77
8.0.80.0110.00416.82
8.0.70.0000.00716.70
8.0.60.0000.00816.68
8.0.50.0040.00416.73
8.0.30.0080.01017.02
8.0.20.0070.01217.40
8.0.10.0040.00416.86
8.0.00.0110.00816.67
7.4.330.0050.00015.07
7.4.320.0060.00016.47
7.4.300.0050.00216.51
7.4.290.0030.00316.42
7.4.280.0000.00916.50
7.4.270.0000.00716.59
7.4.260.0030.00313.30
7.4.250.0030.00516.55
7.4.240.0020.00516.53
7.4.230.0040.00416.43
7.4.220.0110.00716.63
7.4.210.0070.00816.58
7.4.200.0070.00016.70
7.4.190.0000.00716.47
7.4.160.0130.00316.50
7.4.150.0100.00617.40
7.4.140.0110.00817.86
7.4.130.0110.00816.52
7.4.120.0070.00916.50
7.4.110.0100.00716.57
7.4.100.0140.00416.69
7.4.90.0030.01516.41
7.4.80.0100.01019.39
7.4.70.0060.00916.50
7.4.60.0100.00716.39
7.4.50.0000.00816.41
7.4.40.0060.00622.77
7.4.30.0080.00816.37
7.4.00.0070.01015.00
7.3.330.0000.00513.38
7.3.320.0020.00213.27
7.3.310.0000.00916.30
7.3.300.0000.00716.38
7.3.290.0080.00616.20
7.3.280.0110.00616.26
7.3.270.0100.00717.40
7.3.260.0070.01116.54
7.3.250.0130.00516.48
7.3.240.0110.00616.58
7.3.230.0110.00716.58
7.3.210.0170.00016.45
7.3.200.0090.00919.39
7.3.190.0150.00316.25
7.3.180.0060.01016.38
7.3.170.0130.00316.61
7.3.160.0120.00916.36
7.3.120.0120.00314.78
7.3.10.0030.01016.58
7.3.00.0090.00616.58
7.2.330.0100.00716.66
7.2.320.0070.01016.73
7.2.310.0120.01216.59
7.2.300.0100.00716.74
7.2.290.0170.00016.52
7.2.130.0070.00717.03
7.2.120.0060.01017.02
7.2.110.0060.00916.83
7.2.100.0080.00716.77
7.2.90.0080.00616.79
7.2.80.0090.00516.99
7.2.70.0080.00616.92
7.2.60.0080.00816.70
7.2.50.0050.00817.02
7.2.40.0020.00916.77
7.2.30.0080.00816.94
7.2.20.0080.00917.00
7.2.10.0020.01017.17
7.2.00.0060.00817.72
7.1.250.0070.00915.66
7.1.200.0040.01115.84
7.1.100.0050.00518.14
7.1.70.0000.00717.07
7.1.60.0060.00919.32
7.1.50.0130.01016.72
7.1.00.0070.03022.54
7.0.200.0050.00316.70
7.0.140.0000.07722.12
7.0.100.0100.04319.80
7.0.90.0070.05019.89
7.0.80.0100.03719.84
7.0.70.0170.07319.93
7.0.60.0070.08319.88
7.0.50.0130.07320.25
7.0.40.0030.09020.02
7.0.30.0100.06720.10
7.0.20.0070.08319.89
7.0.10.0100.07020.02
7.0.00.0070.07720.02
5.6.280.0030.07320.93
5.6.250.0030.09020.52
5.6.240.0130.07720.50
5.6.230.0130.07320.63
5.6.220.0170.07320.62
5.6.210.0070.07320.66
5.6.200.0030.08720.95
5.6.190.0170.07720.99
5.6.180.0100.05721.09
5.6.170.0100.07320.96
5.6.160.0130.03321.04
5.6.150.0000.06721.02
5.6.140.0130.07721.00
5.6.130.0030.08021.04
5.6.120.0170.07020.86
5.6.110.0030.08720.99
5.6.100.0100.07721.01
5.6.90.0130.07320.88
5.6.80.0130.06720.33
5.6.70.0130.07320.32
5.6.60.0130.06720.46
5.6.50.0100.08020.35
5.6.40.0030.05720.21
5.6.30.0030.08720.41
5.6.20.0130.07320.38
5.6.10.0070.08020.35
5.6.00.0000.08320.30
5.5.380.0030.08720.39
5.5.370.0070.05320.23
5.5.360.0070.07720.25
5.5.350.0100.07020.38
5.5.340.0100.08020.58
5.5.330.0030.05320.71
5.5.320.0130.07020.81
5.5.310.0030.08320.87
5.5.300.0170.07720.88
5.5.290.0070.04320.82
5.5.280.0030.08720.71
5.5.270.0030.05320.79
5.5.260.0070.07720.69
5.5.250.0100.07320.51
5.5.240.0130.06720.25
5.5.230.0100.07020.19
5.5.220.0070.07720.11
5.5.210.0070.05020.14
5.5.200.0070.07720.17
5.5.190.0000.07020.04
5.5.180.0100.07720.24
5.5.160.0100.04320.18
5.5.150.0030.08020.03
5.5.140.0070.05020.16
5.5.130.0070.04320.12
5.5.120.0070.07720.19
5.5.110.0000.08720.14
5.5.100.0130.07020.02
5.5.90.0070.07320.00
5.5.80.0070.07319.90
5.5.70.0030.08320.02
5.5.60.0030.07720.07
5.5.50.0030.07319.97
5.5.40.0130.07020.01
5.5.30.0030.07720.02
5.5.20.0100.04319.92
5.5.10.0030.04720.01
5.5.00.0030.07019.87
5.4.450.0070.08019.20
5.4.440.0070.06319.22
5.4.430.0030.08019.22
5.4.420.0100.04319.55
5.4.410.0100.07719.16
5.4.400.0070.05019.16
5.4.390.0130.07019.13
5.4.380.0130.07019.12
5.4.370.0070.07019.13
5.4.360.0030.07719.23
5.4.350.0100.04718.95
5.4.340.0030.06719.12
5.4.320.0100.07319.09
5.4.310.0000.05018.87
5.4.300.0070.07718.94
5.4.290.0000.05019.07
5.4.280.0000.07719.13
5.4.270.0030.08318.99
5.4.260.0000.05018.95
5.4.250.0030.04018.84
5.4.240.0070.07718.86
5.4.230.0030.07719.15
5.4.220.0030.07719.20
5.4.210.0100.06719.02
5.4.200.0030.07719.09
5.4.190.0000.08319.21
5.4.180.0100.04019.12
5.4.170.0030.05318.94
5.4.160.0130.05318.88
5.4.150.0070.03718.82
5.4.140.0030.06016.36
5.4.130.0030.03316.36
5.4.120.0030.03316.40
5.4.110.0030.03716.39
5.4.100.0070.04316.50
5.4.90.0030.05016.47
5.4.80.0130.04716.35
5.4.70.0070.03016.31
5.4.60.0000.03716.30
5.4.50.0030.03716.40
5.4.40.0000.04316.51
5.4.30.0000.05016.48
5.4.20.0030.03316.36
5.4.10.0070.03016.36
5.4.00.0130.05315.82
5.3.290.0070.07714.80
5.3.280.0070.07714.53
5.3.270.0070.06714.66
5.3.260.0070.04714.54
5.3.250.0200.06014.64
5.3.240.0070.03314.68
5.3.230.0000.05314.58
5.3.220.0130.02714.53
5.3.210.0070.03314.56
5.3.200.0000.04014.63
5.3.190.0000.04014.68
5.3.180.0030.03714.54
5.3.170.0070.04014.63
5.3.160.0100.05714.52
5.3.150.0000.04014.50
5.3.140.0000.04314.54
5.3.130.0030.06014.68
5.3.120.0000.04014.56
5.3.110.0030.05014.59
5.3.100.0030.04714.18
5.3.90.0000.06014.00
5.3.80.0030.06013.91
5.3.70.0030.07013.91
5.3.60.0070.03014.10
5.3.50.0070.05714.06
5.3.40.0030.04713.98
5.3.30.0030.03314.00
5.3.20.0100.03013.72
5.3.10.0000.04313.67
5.3.00.0070.05013.65
5.2.170.0070.02711.21
5.2.160.0030.02711.24
5.2.150.0000.03711.17
5.2.140.0000.04011.28
5.2.130.0000.03311.00
5.2.120.0070.03711.17
5.2.110.0000.03011.16
5.2.100.0000.03711.16
5.2.90.0000.03011.17
5.2.80.0000.03311.05
5.2.70.0130.05011.19
5.2.60.0100.02310.98
5.2.50.0000.03011.06
5.2.40.0100.03010.92
5.2.30.0000.03311.07
5.2.20.0030.02710.97
5.2.10.0000.03310.81
5.2.00.0070.02310.78
5.1.60.0070.0379.98
5.1.50.0030.02310.09
5.1.40.0000.0279.97
5.1.30.0030.02310.27
5.1.20.0000.02710.34
5.1.10.0000.02710.14
5.1.00.0030.03710.20
5.0.50.0000.0208.67
5.0.40.0000.0338.52
5.0.30.0100.0478.23
5.0.20.0000.0208.11
5.0.10.0000.0208.11
5.0.00.0030.0508.11
4.4.90.0000.0178.11
4.4.80.0030.0138.11
4.4.70.0000.0178.11
4.4.60.0030.0138.11
4.4.50.0000.0178.11
4.4.40.0000.0308.11
4.4.30.0000.0138.11
4.4.20.0000.0178.11
4.4.10.0000.0178.11
4.4.00.0000.0278.11
4.3.110.0030.0138.11
4.3.100.0000.0278.11
4.3.90.0000.0178.11
4.3.80.0000.0238.11
4.3.70.0000.0178.11
4.3.60.0030.0138.11
4.3.50.0030.0238.11
4.3.40.0000.0538.11
4.3.30.0000.0338.11
4.3.20.0030.0338.11
4.3.10.0000.0378.11
4.3.00.0000.0338.11

preferences:
43.49 ms | 401 KiB | 5 Q