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 <br /> 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.0080.00818.54
8.3.50.0080.01021.14
8.3.40.0070.00718.68
8.3.30.0070.00720.36
8.3.20.0040.00420.21
8.3.10.0000.00821.79
8.3.00.0040.00422.35
8.2.180.0110.00316.50
8.2.170.0040.01122.96
8.2.160.0030.01022.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.95
8.2.110.0030.00622.00
8.2.100.0110.00017.91
8.2.90.0080.00019.19
8.2.80.0040.00419.28
8.2.70.0080.00017.38
8.2.60.0060.00317.77
8.2.50.0000.00818.07
8.2.40.0040.00418.21
8.2.30.0080.00017.94
8.2.20.0000.00817.54
8.2.10.0000.00817.69
8.2.00.0030.00717.61
8.1.280.0120.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.84
8.1.230.0040.00719.04
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0040.00417.53
8.1.180.0000.00919.01
8.1.170.0060.00318.58
8.1.160.0040.00420.52
8.1.150.0040.00418.49
8.1.140.0000.00817.27
8.1.130.0030.00317.84
8.1.120.0000.00717.29
8.1.110.0040.00417.29
8.1.100.0040.00417.44
8.1.90.0040.00417.30
8.1.80.0070.00017.22
8.1.70.0000.00717.39
8.1.60.0040.00417.47
8.1.50.0000.00817.55
8.1.40.0000.00817.49
8.1.30.0000.00717.53
8.1.20.0080.00017.57
8.1.10.0040.00417.63
8.1.00.0090.00017.41
8.0.300.0050.00218.77
8.0.290.0040.00417.18
8.0.280.0070.00018.42
8.0.270.0000.00817.20
8.0.260.0030.00316.77
8.0.250.0040.00416.83
8.0.240.0000.00816.75
8.0.230.0050.00216.87
8.0.220.0000.00716.79
8.0.210.0030.00416.79
8.0.200.0070.00016.94
8.0.190.0000.00916.86
8.0.180.0070.00016.89
8.0.170.0030.00616.76
8.0.160.0080.00016.86
8.0.150.0070.00016.81
8.0.140.0000.00816.84
8.0.130.0030.00613.28
8.0.120.0040.00416.82
8.0.110.0050.00216.73
8.0.100.0070.00016.94
8.0.90.0040.00416.87
8.0.80.0030.01216.87
8.0.70.0040.00416.78
8.0.60.0000.00716.66
8.0.50.0030.00516.86
8.0.30.0070.01317.01
8.0.20.0070.01117.40
8.0.10.0040.00417.01
8.0.00.0120.00816.73
7.4.330.0050.00015.02
7.4.320.0030.00316.46
7.4.300.0000.00616.52
7.4.290.0030.00316.52
7.4.280.0040.00416.51
7.4.270.0040.00416.53
7.4.260.0040.00416.61
7.4.250.0000.00816.49
7.4.240.0020.00516.56
7.4.230.0040.00416.63
7.4.220.0110.00816.59
7.4.210.0040.01216.51
7.4.200.0000.00716.63
7.4.190.0000.00816.55
7.4.160.0060.00916.58
7.4.150.0100.00717.40
7.4.140.0120.00817.86
7.4.130.0150.00316.57
7.4.120.0110.01116.51
7.4.110.0070.01716.59
7.4.100.0070.01016.67
7.4.90.0090.00916.54
7.4.80.0030.01419.39
7.4.70.0090.00616.39
7.4.60.0100.00716.41
7.4.50.0040.00416.28
7.4.40.0110.00622.77
7.4.30.0100.00716.32
7.4.00.0090.00615.10
7.3.330.0030.00313.14
7.3.320.0030.00313.21
7.3.310.0030.00316.32
7.3.300.0000.00716.14
7.3.290.0070.00716.32
7.3.280.0110.00816.32
7.3.270.0080.00817.40
7.3.260.0040.01316.33
7.3.250.0080.01116.45
7.3.240.0070.01116.32
7.3.230.0130.00316.39
7.3.210.0090.00916.35
7.3.200.0140.00419.39
7.3.190.0070.01016.59
7.3.180.0150.00016.32
7.3.170.0040.01416.45
7.3.160.0000.01716.46
7.3.120.0030.01414.80
7.3.00.0000.00916.64
7.2.330.0030.01416.61
7.2.320.0110.01116.57
7.2.310.0130.00616.86
7.2.300.0030.01416.74
7.2.290.0000.01616.80
7.2.130.0070.01016.56
7.2.120.0000.01316.52
7.2.110.0040.01116.91
7.2.100.0040.00816.70
7.2.90.0070.00716.67
7.2.80.0060.01016.95
7.2.70.0060.00916.73
7.2.60.0030.00617.04
7.2.50.0060.00616.96
7.2.40.0130.00317.06
7.2.30.0090.00616.91
7.2.20.0040.01116.97
7.2.10.0000.01016.85
7.2.00.0140.00316.91
7.1.250.0120.00315.69
7.1.240.0060.01015.74
7.1.230.0040.01115.63
7.1.220.0110.00415.82
7.1.210.0070.01015.63
7.1.200.0100.00015.86
7.1.190.0040.01115.37
7.1.180.0040.00815.70
7.1.170.0080.00315.72
7.1.160.0100.00315.70
7.1.150.0030.00715.70
7.1.140.0080.00415.89
7.1.130.0030.00915.47
7.1.120.0060.00315.57
7.1.110.0040.00815.83
7.1.100.0110.00415.91
7.1.90.0030.00915.83
7.1.80.0060.00915.68
7.1.70.0040.00816.24
7.1.60.0060.01117.41
7.1.50.0030.01516.20
7.1.40.0060.00615.32
7.1.30.0000.01715.50
7.1.20.0080.00415.65
7.1.10.0000.01315.63
7.1.00.0030.02019.00
7.0.330.0100.00315.21
7.0.320.0060.00615.41
7.0.310.0040.01115.28
7.0.300.0070.00715.31
7.0.290.0040.00415.30
7.0.280.0070.00715.25
7.0.270.0000.00915.22
7.0.260.0150.00015.26
7.0.250.0050.00215.32
7.0.240.0040.00415.15
7.0.230.0070.00715.18
7.0.220.0060.00315.21
7.0.210.0080.00015.39
7.0.200.0020.00816.00
7.0.190.0030.01015.47
7.0.180.0030.00515.23
7.0.170.0040.01115.28
7.0.160.0030.00515.58
7.0.150.0070.00715.48
7.0.140.0050.03718.59
7.0.130.0100.00715.07
7.0.120.0040.01115.29
7.0.110.0000.01415.43
7.0.100.0190.04417.61
7.0.90.0190.03517.45
7.0.80.0200.03117.62
7.0.70.0210.04017.52
7.0.60.0180.02017.64
7.0.50.0170.04017.93
7.0.40.0050.04616.68
7.0.30.0040.02616.71
7.0.20.0050.04716.75
7.0.10.0080.02716.80
7.0.00.0060.03016.76
5.6.380.0040.01114.21
5.6.370.0100.00014.43
5.6.360.0060.00614.44
5.6.350.0000.01514.37
5.6.340.0060.00614.61
5.6.330.0030.01014.25
5.6.320.0060.00814.40
5.6.310.0030.01013.86
5.6.300.0030.00614.08
5.6.290.0130.00314.04
5.6.280.0060.04117.33
5.6.270.0060.00614.25
5.6.260.0060.00614.34
5.6.250.0050.02817.62
5.6.240.0030.02817.60
5.6.230.0130.04117.48
5.6.220.0060.04017.47
5.6.210.0050.03817.51
5.6.200.0070.04617.57
5.6.190.0050.03517.82
5.6.180.0080.03617.62
5.6.170.0100.03817.79
5.6.160.0040.03317.65
5.6.150.0080.04617.53
5.6.140.0120.04317.56
5.6.130.0070.03317.60
5.6.120.0070.04217.58
5.6.110.0100.04017.64
5.6.100.0070.02817.75
5.6.90.0100.04617.61
5.6.80.0070.04417.33
5.6.70.0100.03617.40
5.6.60.0100.04117.25
5.6.50.0050.04517.40
5.6.40.0130.03717.40
5.6.30.0070.03817.34
5.6.20.0040.02617.19
5.6.10.0080.04317.26
5.6.00.0050.02717.32
5.5.380.0050.04115.68
5.5.370.0050.03815.83
5.5.360.0050.04615.83
5.5.350.0090.04115.61
5.5.340.0050.04515.91
5.5.330.0060.04015.93
5.5.320.0050.02316.13
5.5.310.0030.04616.00
5.5.300.0080.02815.92
5.5.290.0040.04615.89
5.5.280.0050.03316.16
5.5.270.0080.04115.88
5.5.260.0050.03815.93
5.5.250.0070.03215.85
5.5.240.0080.02015.58
5.5.230.0100.03015.65
5.5.220.0060.03015.70
5.5.210.0050.04215.71
5.5.200.0120.03515.64
5.5.190.0020.04615.70
5.5.180.0050.03715.71
5.5.170.0000.01011.20
5.5.160.0110.03015.72
5.5.150.0050.04415.61
5.5.140.0070.03815.70
5.5.130.0060.03315.59
5.5.120.0120.03815.57
5.5.110.0060.04515.56
5.5.100.0080.02315.62
5.5.90.0050.04015.67
5.5.80.0120.03715.53
5.5.70.0130.03615.58
5.5.60.0030.03815.52
5.5.50.0060.02315.48
5.5.40.0020.04515.41
5.5.30.0070.03015.54
5.5.20.0050.03515.49
5.5.10.0050.02015.56
5.5.00.0080.03615.43
5.4.450.0060.03615.23
5.4.440.0050.04415.17
5.4.430.0070.03115.17
5.4.420.0070.03015.23
5.4.410.0060.03515.20
5.4.400.0080.02115.04
5.4.390.0050.03915.06
5.4.380.0050.04414.87
5.4.370.0060.04115.01
5.4.360.0030.04415.03
5.4.350.0000.04414.89
5.4.340.0080.03715.04
5.4.330.0000.00810.90
5.4.320.0060.03514.97
5.4.310.0020.02715.08
5.4.300.0070.02214.97
5.4.290.0090.03814.96
5.4.280.0040.03915.09
5.4.270.0040.02515.02
5.4.260.0080.03315.15
5.4.250.0130.03615.07
5.4.240.0030.03515.12
5.4.230.0050.04114.99
5.4.220.0100.03114.88
5.4.210.0050.02415.02
5.4.200.0090.03515.01
5.4.190.0060.02314.88
5.4.180.0050.02014.89
5.4.170.0090.01814.99
5.4.160.0050.02315.04
5.4.150.0020.02414.91
5.4.140.0070.03713.57
5.4.130.0110.02713.57
5.4.120.0070.03513.67
5.4.110.0050.04013.77
5.4.100.0070.03913.74
5.4.90.0040.03813.61
5.4.80.0050.04013.68
5.4.70.0050.03813.69
5.4.60.0040.04413.79
5.4.50.0210.01913.77
5.4.40.0030.02813.70
5.4.30.0020.03713.65
5.4.20.0030.03313.85
5.4.10.0030.04313.77
5.4.00.0110.03513.56
5.3.290.0060.04312.79
5.3.280.0030.02712.71
5.3.270.0030.03512.78
5.3.260.0080.03512.75
5.3.250.0020.02512.74
5.3.240.0020.03312.82
5.3.230.0090.03812.78
5.3.220.0110.03312.77
5.3.210.0070.03812.74
5.3.200.0000.04712.76
5.3.190.0090.02712.71
5.3.180.0050.02312.70
5.3.170.0020.02812.76
5.3.160.0080.03512.80
5.3.150.0050.04112.80
5.3.140.0100.03012.73
5.3.130.0090.03612.72
5.3.120.0050.02512.71
5.3.110.0030.04312.69
5.3.100.0080.03312.43
5.3.90.0050.04012.44
5.3.80.0080.04012.51
5.3.70.0040.04412.50
5.3.60.0100.03312.52
5.3.50.0040.02512.48
5.3.40.0050.02212.39
5.3.30.0050.04012.41
5.3.20.0050.02812.32
5.3.10.0030.03612.29
5.3.00.0030.04312.28
5.2.170.0050.03511.33
5.2.160.0000.02011.33
5.2.150.0000.03411.33
5.2.140.0050.03011.33
5.2.130.0000.02311.33
5.2.120.0050.03011.33
5.2.110.0070.03011.33
5.2.100.0060.03311.33
5.2.90.0040.02411.33
5.2.80.0030.03011.33
5.2.70.0020.02511.33
5.2.60.0030.03711.33
5.2.50.0070.03011.33
5.2.40.0070.02011.33
5.2.30.0020.02711.33
5.2.20.0040.02611.33
5.2.10.0030.03011.33
5.2.00.0020.02511.33
5.1.60.0050.01611.33
5.1.50.0030.02311.33
5.1.40.0020.02411.33
5.1.30.0050.02811.33
5.1.20.0030.01911.33
5.1.10.0030.01811.33
5.1.00.0020.02011.33
5.0.50.0000.01411.33
5.0.40.0020.02111.33
5.0.30.0020.03711.33
5.0.20.0040.01711.33
5.0.10.0050.02211.33
5.0.00.0030.01911.33
4.4.90.0010.00911.33
4.4.80.0050.01011.33
4.4.70.0020.01911.33
4.4.60.0020.01511.33
4.4.50.0000.01511.33
4.4.40.0000.01511.33
4.4.30.0030.01311.33
4.4.20.0040.01711.33
4.4.10.0020.01711.33
4.4.00.0030.02111.33
4.3.110.0000.01311.33
4.3.100.0000.01611.33
4.3.90.0050.01511.33
4.3.80.0030.02311.33
4.3.70.0030.01811.33
4.3.60.0020.01411.33
4.3.50.0030.01611.33
4.3.40.0050.02611.33
4.3.30.0030.02111.33
4.3.20.0040.01911.33
4.3.10.0040.01711.33
4.3.00.0030.01611.33

preferences:
46.66 ms | 401 KiB | 5 Q