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() { printf("Hello! :D 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.01318.56
8.3.50.0090.00721.14
8.3.40.0140.00018.82
8.3.30.0060.00920.22
8.3.20.0070.00020.34
8.3.10.0060.00322.10
8.3.00.0060.00322.45
8.2.180.0060.00916.50
8.2.170.0100.00722.96
8.2.160.0150.00322.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0070.01117.38
8.2.110.0030.00622.29
8.2.100.0040.00817.84
8.2.90.0040.00419.41
8.2.80.0000.00819.34
8.2.70.0040.00417.25
8.2.60.0030.00518.04
8.2.50.0050.00318.07
8.2.40.0040.00418.21
8.2.30.0030.00617.98
8.2.20.0000.00717.66
8.2.10.0040.00417.70
8.2.00.0030.00717.59
8.1.280.0110.00425.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0000.01119.01
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0000.01017.22
8.1.190.0080.00017.54
8.1.180.0070.00319.14
8.1.170.0040.00418.56
8.1.160.0000.00718.75
8.1.150.0030.00618.45
8.1.140.0050.00217.39
8.1.130.0070.00017.82
8.1.120.0040.00417.31
8.1.110.0030.00517.33
8.1.100.0000.00717.29
8.1.90.0000.00717.41
8.1.80.0030.00317.29
8.1.70.0000.00717.34
8.1.60.0060.00317.63
8.1.50.0030.00617.57
8.1.40.0030.00617.54
8.1.30.0040.00417.63
8.1.20.0050.00317.55
8.1.10.0040.00417.50
8.1.00.0000.00717.38
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0000.00718.39
8.0.270.0030.00317.26
8.0.260.0000.00816.76
8.0.250.0000.00716.98
8.0.240.0050.00316.86
8.0.230.0040.00416.95
8.0.220.0040.00316.82
8.0.210.0050.00216.86
8.0.200.0000.00616.91
8.0.190.0030.00616.89
8.0.180.0040.00416.75
8.0.170.0040.00416.75
8.0.160.0040.00416.70
8.0.150.0000.00716.68
8.0.140.0040.00416.79
8.0.130.0080.00013.22
8.0.120.0030.00516.69
8.0.110.0050.00216.87
8.0.100.0040.00416.78
8.0.90.0000.00716.81
8.0.80.0090.00616.81
8.0.70.0080.00016.68
8.0.60.0040.00416.86
8.0.50.0040.00416.88
8.0.30.0110.00916.81
8.0.20.0090.00817.40
8.0.10.0040.00416.82
8.0.00.0080.01216.80
7.4.330.0050.00015.10
7.4.320.0040.00416.54
7.4.300.0000.00616.50
7.4.290.0000.00816.52
7.4.280.0030.00316.63
7.4.270.0070.00016.57
7.4.260.0040.00416.51
7.4.250.0090.00016.52
7.4.240.0000.00716.47
7.4.230.0070.00016.25
7.4.220.0120.00616.50
7.4.210.0070.00716.51
7.4.200.0070.00016.39
7.4.190.0000.00716.36
7.4.160.0040.01216.45
7.4.150.0110.00617.40
7.4.140.0130.00717.86
7.4.130.0120.00816.34
7.4.120.0140.00616.53
7.4.110.0030.01516.55
7.4.100.0060.01216.50
7.4.90.0130.00716.59
7.4.80.0050.01519.39
7.4.70.0030.01416.39
7.4.60.0140.00316.65
7.4.50.0040.00416.30
7.4.40.0070.00722.77
7.4.30.0060.01216.59
7.4.00.0050.00914.69
7.3.330.0050.00013.13
7.3.320.0000.00513.24
7.3.310.0040.00316.16
7.3.300.0070.00016.22
7.3.290.0040.01216.34
7.3.280.0110.00616.31
7.3.270.0100.00717.40
7.3.260.0070.01716.23
7.3.250.0120.00616.54
7.3.240.0060.01516.32
7.3.230.0100.00716.59
7.3.210.0170.00016.28
7.3.200.0060.01619.39
7.3.190.0120.00916.27
7.3.180.0070.01016.23
7.3.170.0170.00516.50
7.3.160.0130.00316.54
7.3.120.0080.00815.00
7.3.110.0070.00714.57
7.3.100.0070.01014.93
7.3.90.0100.00314.77
7.3.80.0060.01214.80
7.3.70.0060.00614.54
7.3.60.0050.00514.51
7.3.50.0040.00414.57
7.3.40.0080.00014.46
7.3.30.0030.01014.77
7.3.20.0090.00616.59
7.3.10.0030.01016.55
7.3.00.0060.00316.30
7.2.330.0120.00616.60
7.2.320.0090.00916.57
7.2.310.0100.00716.85
7.2.300.0100.00716.65
7.2.290.0120.00616.76
7.2.250.0070.01015.21
7.2.240.0070.01115.09
7.2.230.0070.01115.00
7.2.220.0030.00615.09
7.2.210.0040.01114.96
7.2.200.0060.00614.99
7.2.190.0040.01115.15
7.2.180.0080.00815.04
7.2.170.0040.01114.98
7.2.60.0070.00716.83
7.2.00.0030.00919.13
7.1.330.0070.00715.59
7.1.320.0090.00015.38
7.1.310.0070.00715.50
7.1.300.0060.01015.56
7.1.290.0070.00715.64
7.1.280.0040.00415.76
7.1.270.0110.00415.55
7.1.260.0060.00915.79
7.1.200.0070.00315.55
7.1.100.0000.01118.22
7.1.70.0000.00716.81
7.1.60.0070.01619.32
7.1.50.0030.01916.89
7.1.00.0000.07022.51
7.0.200.0080.00016.37
7.0.140.0030.07322.09
7.0.100.0170.07019.94
7.0.90.0000.08320.03
7.0.80.0130.07319.86
7.0.70.0130.07019.89
7.0.60.0070.08319.98
7.0.50.0070.07320.32
7.0.40.0100.08020.10
7.0.30.0170.08020.19
7.0.20.0070.07720.15
7.0.10.0070.05020.09
7.0.00.0100.07720.16
5.6.280.0070.07320.86
5.6.250.0230.06020.70
5.6.240.0130.07320.61
5.6.230.0030.09320.60
5.6.220.0230.07020.63
5.6.210.0200.07020.62
5.6.200.0030.04321.06
5.6.190.0030.08320.96
5.6.180.0130.06721.02
5.6.170.0100.07720.95
5.6.160.0070.07721.09
5.6.150.0030.05321.03
5.6.140.0100.07321.11
5.6.130.0170.07321.07
5.6.120.0030.08721.03
5.6.110.0170.08320.95
5.6.100.0000.08021.16
5.6.90.0170.04320.90
5.6.80.0130.07320.53
5.6.70.0100.07020.34
5.6.60.0070.07720.40
5.6.50.0000.04720.44
5.6.40.0070.07720.47
5.6.30.0070.08320.39
5.6.20.0200.06320.47
5.6.10.0130.07020.41
5.6.00.0000.08320.45
5.5.380.0100.07720.41
5.5.370.0130.07720.55
5.5.360.0100.08320.36
5.5.350.0030.08320.48
5.5.340.0170.06720.85
5.5.330.0070.07720.92
5.5.320.0100.08020.85
5.5.310.0030.08720.93
5.5.300.0130.08020.77
5.5.290.0000.08720.91
5.5.280.0030.07020.89
5.5.270.0030.05720.63
5.5.260.0100.07320.88
5.5.250.0130.07720.62
5.5.240.0130.06320.25
5.5.230.0070.07720.29
5.5.220.0200.06720.03
5.5.210.0100.04320.29
5.5.200.0130.07320.17
5.5.190.0100.08020.27
5.5.180.0070.07320.25
5.5.160.0100.05320.25
5.5.150.0030.04720.18
5.5.140.0030.07320.24
5.5.130.0100.07320.24
5.5.120.0100.07319.99
5.5.110.0030.06320.11
5.5.100.0100.07320.13
5.5.90.0100.07320.18
5.5.80.0070.07020.18
5.5.70.0030.07720.10
5.5.60.0100.06719.97
5.5.50.0070.07020.07
5.5.40.0030.04020.14
5.5.30.0000.06720.05
5.5.20.0030.04320.15
5.5.10.0030.04320.11
5.5.00.0000.05319.96
5.4.450.0030.06319.54
5.4.440.0030.08019.56
5.4.430.0070.07319.45
5.4.420.0030.06319.27
5.4.410.0070.07719.43
5.4.400.0130.07319.05
5.4.390.0030.08018.88
5.4.380.0070.07719.25
5.4.370.0070.06319.13
5.4.360.0100.07719.13
5.4.350.0130.06319.18
5.4.340.0000.07319.05
5.4.320.0070.07718.91
5.4.310.0030.07318.90
5.4.300.0030.08019.04
5.4.290.0070.06319.12
5.4.280.0070.06719.22
5.4.270.0070.05318.88
5.4.260.0070.03319.04
5.4.250.0000.08019.04
5.4.240.0100.07019.16
5.4.230.0030.07319.14
5.4.220.0070.07318.87
5.4.210.0030.06018.89
5.4.200.0030.04718.89
5.4.190.0100.04719.02
5.4.180.0100.04019.13
5.4.170.0130.03319.17
5.4.160.0070.03319.07
5.4.150.0000.04018.83
5.4.140.0070.03316.26
5.4.130.0000.03716.41
5.4.120.0030.03316.43
5.4.110.0030.04016.43
5.4.100.0170.02316.33
5.4.90.0000.06316.48
5.4.80.0100.03016.30
5.4.70.0100.02716.33
5.4.60.0030.07016.49
5.4.50.0100.04716.36
5.4.40.0000.05016.55
5.4.30.0000.06316.32
5.4.20.0030.03316.33
5.4.10.0000.04016.33
5.4.00.0030.03315.85
5.3.290.0130.07014.73
5.3.280.0070.07714.56
5.3.270.0000.07014.72
5.3.260.0030.03714.68
5.3.250.0030.03714.72
5.3.240.0100.03014.68
5.3.230.0070.03314.63
5.3.220.0100.03314.59
5.3.210.0030.04714.63
5.3.200.0000.04014.58
5.3.190.0000.06014.55
5.3.180.0030.06314.56
5.3.170.0130.02714.55
5.3.160.0100.02714.61
5.3.150.0000.04014.57
5.3.140.0030.07014.62
5.3.130.0000.04314.54
5.3.120.0070.03714.60
5.3.110.0000.04714.65
5.3.100.0030.03314.03
5.3.90.0030.03314.03
5.3.80.0000.04014.05
5.3.70.0000.03713.91
5.3.60.0070.03313.90
5.3.50.0030.04713.94
5.3.40.0070.03313.89
5.3.30.0030.04013.98
5.3.20.0030.04013.84
5.3.10.0070.04013.67
5.3.00.0070.03013.57
5.2.170.0070.06011.29
5.2.160.0030.02711.06
5.2.150.0000.03011.04
5.2.140.0000.03311.24
5.2.130.0000.03011.17
5.2.120.0030.03011.12
5.2.110.0000.04011.13
5.2.100.0030.02711.22
5.2.90.0000.03011.13
5.2.80.0000.03711.23
5.2.70.0000.03310.96
5.2.60.0100.06011.04
5.2.50.0000.03310.95
5.2.40.0000.02710.94
5.2.30.0030.02711.01
5.2.20.0030.03011.07
5.2.10.0030.02710.88
5.2.00.0030.02710.67
5.1.60.0100.0179.99
5.1.50.0000.0279.99
5.1.40.0070.01710.06
5.1.30.0000.03710.40
5.1.20.0030.04710.27
5.1.10.0000.0279.95
5.1.00.0070.06010.17
5.0.50.0030.0278.44
5.0.40.0000.0208.25
5.0.30.0030.0538.11
5.0.20.0000.0378.20
5.0.10.0030.0408.24
5.0.00.0000.0678.18
4.4.90.0000.0178.07
4.4.80.0000.0208.07
4.4.70.0030.0138.07
4.4.60.0000.0178.07
4.4.50.0000.0178.07
4.4.40.0000.0238.07
4.4.30.0000.0178.07
4.4.20.0030.0138.07
4.4.10.0030.0238.07
4.4.00.0070.0238.07
4.3.110.0030.0108.07
4.3.100.0000.0378.07
4.3.90.0000.0378.07
4.3.80.0030.0478.07
4.3.70.0000.0378.07
4.3.60.0070.0308.07
4.3.50.0070.0278.07
4.3.40.0000.0578.07
4.3.30.0000.0378.07
4.3.20.0000.0278.07
4.3.10.0000.0378.07
4.3.00.0030.0308.07

preferences:
44.97 ms | 401 KiB | 5 Q