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() { $genderCheck = ($this->bool == true ? "true" : "false"); return printf("Hello! My name is %s, I am %d years old and it is $genderCheck that I am a male.", $this->string, $this->int); } } $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.0110.00416.63
8.3.50.0120.00317.61
8.3.40.0120.00318.80
8.3.30.0070.01118.67
8.3.20.0040.00418.73
8.3.10.0040.00418.65
8.3.00.0040.00419.25
8.2.180.0150.00418.20
8.2.170.0040.01122.96
8.2.160.0070.00721.00
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00822.21
8.2.110.0050.00521.12
8.2.100.0080.00417.91
8.2.90.0050.00319.27
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0000.00717.93
8.2.50.0040.00418.10
8.2.40.0040.00420.59
8.2.30.0000.00718.06
8.2.20.0050.00217.63
8.2.10.0030.00617.62
8.2.00.0040.00417.57
8.1.280.0110.00425.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00620.96
8.1.230.0080.00417.82
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0060.00317.22
8.1.180.0050.00318.10
8.1.170.0100.00018.58
8.1.160.0030.00422.08
8.1.150.0040.00418.61
8.1.140.0000.00717.34
8.1.130.0070.00017.88
8.1.120.0070.00017.47
8.1.110.0000.00817.48
8.1.100.0050.00217.46
8.1.90.0000.00817.38
8.1.80.0000.00717.52
8.1.70.0030.00517.45
8.1.60.0040.00417.57
8.1.50.0040.00417.38
8.1.40.0030.00617.49
8.1.30.0030.00617.58
8.1.20.0000.00717.71
8.1.10.0040.00417.48
8.1.00.0060.00317.43
8.0.300.0070.00018.77
8.0.290.0000.00916.63
8.0.280.0030.00318.51
8.0.270.0030.00317.15
8.0.260.0050.00316.82
8.0.250.0040.00416.95
8.0.240.0040.00416.96
8.0.230.0030.00316.93
8.0.220.0000.00816.80
8.0.210.0030.00616.78
8.0.200.0030.00316.97
8.0.190.0030.00616.86
8.0.180.0040.00416.95
8.0.170.0100.00016.85
8.0.160.0070.00016.83
8.0.150.0040.00416.74
8.0.140.0000.01216.85
8.0.130.0030.00313.37
8.0.120.0040.00416.90
8.0.110.0050.00316.77
8.0.100.0000.00716.86
8.0.90.0070.00016.97
8.0.80.0080.00816.90
8.0.70.0080.00016.80
8.0.60.0030.00616.89
8.0.50.0040.00416.72
8.0.30.0120.00717.09
8.0.20.0100.01017.18
8.0.10.0000.00716.84
8.0.00.0070.01016.76
7.4.330.0030.00313.04
7.4.320.0030.00316.54
7.4.300.0030.00316.50
7.4.290.0030.00616.43
7.4.280.0070.00016.50
7.4.270.0000.00616.63
7.4.260.0000.00613.38
7.4.250.0080.00016.61
7.4.240.0040.00416.54
7.4.230.0000.00716.43
7.4.220.0130.00616.71
7.4.210.0080.00616.69
7.4.200.0030.00316.62
7.4.190.0000.00816.53
7.4.160.0110.00516.47
7.4.150.0030.01416.68
7.4.140.0100.01116.52
7.4.130.0050.01316.42
7.4.120.0060.01316.41
7.4.110.0060.01416.51
7.4.100.0140.00316.57
7.4.90.0100.00716.62
7.4.80.0120.00916.47
7.4.70.0060.00916.45
7.4.60.0130.00316.51
7.4.50.0080.00516.50
7.4.40.0060.00916.51
7.4.30.0110.00516.57
7.4.00.0060.01014.87
7.3.330.0040.00413.25
7.3.320.0000.00613.17
7.3.310.0000.00616.39
7.3.300.0070.00016.40
7.3.290.0040.01116.38
7.3.280.0060.00916.36
7.3.270.0040.01816.45
7.3.260.0060.01216.39
7.3.250.0110.01016.41
7.3.240.0130.01016.42
7.3.230.0110.00516.46
7.3.210.0090.00816.65
7.3.200.0110.01119.39
7.3.190.0100.01016.57
7.3.180.0110.00516.64
7.3.170.0080.00816.58
7.3.160.0090.00616.57
7.3.120.0050.01115.00
7.3.110.0040.01214.90
7.3.100.0030.01315.06
7.3.90.0030.01014.70
7.3.80.0040.01214.69
7.3.70.0130.00314.84
7.3.60.0080.00614.96
7.3.50.0040.01114.72
7.3.40.0000.01214.88
7.3.30.0060.00814.79
7.3.20.0030.00716.48
7.3.10.0100.00016.28
7.3.00.0060.00716.66
7.2.330.0160.00316.31
7.2.320.0090.00916.82
7.2.310.0120.00916.56
7.2.300.0030.01416.84
7.2.290.0130.00316.39
7.2.250.0200.00015.07
7.2.240.0090.00914.69
7.2.230.0100.00414.97
7.2.220.0100.00314.66
7.2.210.0100.00714.66
7.2.200.0000.01315.32
7.2.190.0100.00714.97
7.2.180.0040.01214.79
7.2.170.0060.00915.05
7.1.330.0110.00415.94
7.1.320.0070.00715.54
7.1.310.0060.01015.68
7.1.300.0100.00015.81
7.1.290.0090.00615.63
7.1.280.0100.00315.58
7.1.270.0080.01015.55
7.1.260.0000.01415.96
7.1.100.0030.00718.14
7.1.70.0000.00816.82
7.1.60.0040.02119.40
7.1.50.0080.01516.94
7.1.00.0000.05022.42
7.0.200.0560.00614.79
7.0.140.0000.07722.08
7.0.120.0100.06722.18
7.0.60.0030.04020.07
7.0.50.0070.03717.72
7.0.40.0030.04720.27
7.0.30.0530.07720.31
7.0.20.0270.06020.25
7.0.10.0070.06720.22
7.0.00.0030.04320.07
5.6.280.0000.07321.00
5.6.210.0170.07720.62
5.6.200.0030.05018.21
5.6.190.0070.04320.50
5.6.180.2400.03720.42
5.6.170.0230.04320.43
5.6.160.0000.07020.48
5.6.150.0030.05318.28
5.6.140.0030.05318.27
5.6.130.0030.04018.18
5.6.120.0030.04721.15
5.6.110.0070.06321.03
5.6.100.0070.08320.98
5.6.90.0100.03321.10
5.6.80.0070.04320.29
5.6.70.3230.04020.36
5.5.350.0230.08020.39
5.5.340.0070.05718.02
5.5.330.0100.04720.32
5.5.320.0300.08720.25
5.5.310.0130.04320.27
5.5.300.0100.05718.00
5.5.290.0130.07717.97
5.5.280.0030.04020.84
5.5.270.0100.08320.80
5.5.260.0100.07320.85
5.5.250.0000.04720.63
5.5.240.0230.08020.27
5.4.450.0070.05019.53
5.4.440.0070.08019.48
5.4.430.0000.05019.46
5.4.420.0030.06319.19
5.4.410.0030.08719.43
5.4.400.0030.05018.98
5.4.390.0070.07719.08
5.4.380.0030.08319.15
5.4.370.0100.04319.08
5.4.360.0030.05018.85
5.4.350.0070.05718.87
5.4.340.0030.08019.14
5.4.320.0030.04319.15
5.4.310.0030.03719.24
5.4.300.0100.06019.07
5.4.290.0100.07018.97
5.4.280.0030.04719.15
5.4.270.0100.07718.94
5.4.260.0030.05319.24
5.4.250.0100.04719.24
5.4.240.0130.06019.24
5.4.230.0100.06718.86
5.4.220.0130.07319.14
5.4.210.0130.07319.23
5.4.200.0100.04319.23
5.4.190.0100.07018.84
5.4.180.0170.07018.97
5.4.170.0000.05019.11
5.4.160.0070.04318.83
5.4.150.0130.07319.09
5.4.140.0100.06316.30
5.4.130.0070.04716.34
5.4.120.0030.08016.50
5.4.110.0000.08016.48
5.4.100.0130.07016.39
5.4.90.0100.04716.39
5.4.80.0130.06316.52
5.4.70.0030.05016.45
5.4.60.0100.06016.65
5.4.50.0030.04316.40
5.4.40.0070.07716.27
5.4.30.0170.06316.46
5.4.20.0070.03316.38
5.4.10.0130.06716.62
5.4.00.0070.06715.86
5.3.290.0070.03714.72
5.3.280.0100.04014.60
5.3.270.0100.07314.50
5.3.260.0030.07014.63
5.3.250.0100.04314.66
5.3.240.0130.06714.64
5.3.230.0070.08014.76
5.3.220.0000.06714.58
5.3.210.0030.05314.63
5.3.200.0170.06014.73
5.3.190.0030.04714.59
5.3.180.0100.03714.56
5.3.170.0070.04014.71
5.3.160.0070.07314.57
5.3.150.0130.06014.59
5.3.140.0030.07714.57
5.3.130.0070.05014.71
5.3.120.0030.05314.61
5.3.110.0000.05014.56
5.3.100.0030.03713.96
5.3.90.0100.06014.05
5.3.80.0000.07714.17
5.3.70.0100.07713.97
5.3.60.0000.05013.90
5.3.50.0070.04313.84
5.3.40.0070.06314.10
5.3.30.0000.06013.88
5.3.20.0000.04013.85
5.3.10.0130.07313.66
5.3.00.0030.04313.66
5.2.170.0030.03011.05
5.2.160.0100.05711.12
5.2.150.0070.05011.16
5.2.140.0030.04011.04
5.2.130.0070.06011.09
5.2.120.0070.04311.17
5.2.110.0070.04311.03
5.2.100.0070.03711.14
5.2.90.0000.03311.00
5.2.80.0000.03011.11
5.2.70.0000.04011.07
5.2.60.0000.03311.21
5.2.50.0000.03310.91
5.2.40.0130.05310.96
5.2.30.0070.05710.99
5.2.20.0030.05010.96
5.2.10.0100.04310.88
5.2.00.0070.03710.68
5.1.60.0070.05010.16
5.1.50.0070.05310.15
5.1.40.0070.05010.04
5.1.30.0000.05010.39
5.1.20.0030.06010.40
5.1.10.0000.02710.14
5.1.00.0030.05310.12
5.0.50.0070.0279.31
5.0.40.0000.0309.31
5.0.30.0030.0439.31
5.0.20.0030.0179.31
5.0.10.0000.0479.31
5.0.00.0030.0539.31
4.4.90.0030.0139.31
4.4.80.0000.0179.31
4.4.70.0030.0239.31
4.4.60.0000.0239.31
4.4.50.0000.0409.31
4.4.40.0000.0539.31
4.4.30.0030.0379.31
4.4.20.0070.0109.31
4.4.10.0000.0179.31
4.4.00.0070.0409.31
4.3.110.0070.0179.31
4.3.100.0000.0239.31
4.3.90.0030.0139.31
4.3.80.0000.0339.31
4.3.70.0030.0179.31
4.3.60.0130.0239.31
4.3.50.0030.0179.31
4.3.40.0000.0439.31
4.3.30.0070.0179.31
4.3.20.0000.0179.31
4.3.10.0000.0339.31
4.3.00.0030.0179.31

preferences:
45.49 ms | 401 KiB | 5 Q