3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private static $text = 'message %s with %d number'; private $message; function __construct($text) { $this->message = sprintf(self::$text, $text, 12); } } $a = new A;

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.0040.01218.43
8.3.50.0080.01022.03
8.3.40.0070.01018.76
8.3.30.0090.00618.81
8.3.20.0070.00020.41
8.3.10.0040.00421.73
8.3.00.0040.00419.13
8.2.180.0070.01118.29
8.2.170.0080.00822.96
8.2.160.0120.00320.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0080.00019.36
8.2.110.0000.00919.31
8.2.100.0090.00317.50
8.2.90.0000.00919.10
8.2.80.0060.00317.97
8.2.70.0050.00317.36
8.2.60.0050.00317.79
8.2.50.0000.00818.07
8.2.40.0030.00519.57
8.2.30.0080.00017.87
8.2.20.0040.00417.73
8.2.10.0000.00817.85
8.2.00.0040.00417.73
8.1.280.0140.00025.92
8.1.270.0060.00320.48
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.87
8.1.230.0080.00417.63
8.1.220.0050.00217.74
8.1.210.0000.00918.77
8.1.200.0100.00017.23
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0040.00418.52
8.1.160.0030.00522.07
8.1.150.0000.00718.61
8.1.140.0080.00017.27
8.1.130.0000.00717.71
8.1.120.0000.00817.38
8.1.110.0000.00717.23
8.1.100.0030.00317.31
8.1.90.0030.00317.34
8.1.80.0000.00817.34
8.1.70.0030.00317.36
8.1.60.0030.00617.52
8.1.50.0000.01017.45
8.1.40.0040.00417.34
8.1.30.0040.00417.59
8.1.20.0070.00017.54
8.1.10.0050.00217.50
8.1.00.0000.00817.35
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.28
8.0.270.0070.00017.19
8.0.260.0000.00617.20
8.0.250.0070.00016.97
8.0.240.0000.00716.89
8.0.230.0030.00316.91
8.0.220.0050.00316.80
8.0.210.0070.00016.77
8.0.200.0040.00416.94
8.0.190.0050.00316.88
8.0.180.0000.00816.78
8.0.170.0040.00416.91
8.0.160.0030.00716.79
8.0.150.0030.00316.71
8.0.140.0040.00416.85
8.0.130.0030.00313.31
8.0.120.0080.00016.73
8.0.110.0070.00016.78
8.0.100.0040.00416.84
8.0.90.0000.00716.68
8.0.80.0000.01816.91
8.0.70.0000.00716.84
8.0.60.0000.00716.84
8.0.50.0040.00416.89
8.0.30.0110.00717.04
8.0.20.0170.00917.40
8.0.10.0070.00016.96
8.0.00.0100.00716.60
7.4.330.0000.00515.03
7.4.320.0000.00616.48
7.4.300.0000.00616.48
7.4.290.0030.00316.55
7.4.280.0070.00016.46
7.4.270.0030.00616.45
7.4.260.0030.00316.34
7.4.250.0040.00416.48
7.4.240.0050.00216.58
7.4.230.0040.00416.57
7.4.220.0090.00916.35
7.4.210.0120.00316.55
7.4.200.0030.00516.61
7.4.160.0080.00816.33
7.4.150.0060.01917.40
7.4.140.0150.00517.86
7.4.130.0110.00716.45
7.4.120.0070.01516.38
7.4.110.0070.01016.42
7.4.100.0110.01116.65
7.4.90.0120.00416.41
7.4.80.0070.01719.39
7.4.70.0080.00816.35
7.4.60.0060.01916.52
7.4.50.0040.00416.42
7.4.40.0130.00316.63
7.4.30.0100.00616.42
7.4.00.0030.00914.70
7.3.330.0030.00313.39
7.3.320.0060.00613.37
7.3.310.0070.00016.32
7.3.300.0000.00716.39
7.3.290.0000.00716.31
7.3.280.0070.00816.36
7.3.270.0150.00617.40
7.3.260.0140.00316.30
7.3.250.0080.00816.47
7.3.240.0130.00316.52
7.3.230.0090.00916.39
7.3.210.0140.00916.27
7.3.200.0150.00919.39
7.3.190.0080.00816.45
7.3.180.0080.00916.32
7.3.170.0150.00316.28
7.3.160.0150.00616.55
7.2.330.0160.00016.32
7.2.320.0100.00716.51
7.2.310.0090.01416.17
7.2.300.0130.00316.61
7.2.290.0070.01016.68
7.2.60.0000.01316.79
7.1.200.0090.00615.69
7.1.70.0070.00317.04
7.1.60.0090.00317.26
7.1.50.0000.01216.80
7.1.40.0000.01416.57
7.1.30.0060.00616.63
7.1.20.0040.00816.52
7.1.10.0030.00716.57
7.1.00.0070.00716.60
7.0.200.0050.00216.81
7.0.190.0040.00416.68
7.0.180.0030.00716.52
7.0.170.0070.00316.30
7.0.160.0000.00816.25
7.0.150.0040.00416.55
7.0.140.0040.00816.39
7.0.130.0020.00516.36
7.0.120.0000.00716.52
7.0.110.0030.00916.45
7.0.100.0070.01016.41
7.0.90.0060.00316.20
7.0.80.0060.00916.50
7.0.70.0040.01216.10
7.0.60.0040.00715.89
7.0.50.0000.00816.41
7.0.40.0000.00715.09
7.0.30.0000.00715.09
7.0.20.0030.00715.09
7.0.10.0000.01115.09
7.0.00.0080.00015.09
5.6.300.0060.04120.92
5.6.290.0030.07120.78
5.6.280.0030.05420.87
5.6.270.0030.04020.74
5.6.260.0060.06820.81
5.6.250.0070.07220.92
5.6.240.0000.06020.82
5.6.230.0070.08220.99
5.6.220.0070.04620.79
5.6.210.0100.03921.01
5.6.200.0100.03820.81
5.6.190.0100.03421.00
5.6.180.0000.04220.80
5.6.170.0000.04821.01
5.6.160.0000.04320.82
5.6.150.0060.04220.82
5.6.140.0070.05020.96
5.6.130.0030.05220.93
5.6.120.0070.04420.89
5.6.110.0070.04720.75
5.6.100.0130.07220.90
5.6.90.0030.04420.89
5.6.80.0070.03720.20
5.6.70.0070.03620.19
5.6.60.0210.04320.14
5.6.50.0030.03720.35
5.6.40.0000.05620.26
5.6.30.0060.03520.18
5.6.20.0060.03920.18
5.6.10.0030.04120.18
5.6.00.0060.03920.30
5.5.380.0060.04817.55
5.5.370.0070.03817.57
5.5.360.0000.04317.61
5.5.350.0030.04317.53
5.5.340.0030.03917.96
5.5.330.0030.04617.96
5.5.320.0000.04418.08
5.5.310.0040.04217.86
5.5.300.0130.06918.07
5.5.290.0390.04918.09
5.5.280.0030.04318.06
5.5.270.0000.04417.94
5.5.260.0030.06417.82
5.5.250.0070.03917.88
5.5.240.0090.03117.36
5.5.230.0000.04917.39
5.5.220.0030.04217.23
5.5.210.0070.03317.38
5.5.200.0060.03517.43
5.5.190.0070.03617.30
5.5.180.0000.04117.42
5.5.160.0000.04217.33
5.5.150.0000.03917.48
5.5.140.0000.04117.41
5.5.130.0060.03517.04
5.5.120.0230.02717.18
5.5.110.0030.04117.41
5.5.100.0030.04817.33
5.5.90.0030.04017.32
5.5.80.0000.06217.34
5.5.70.0030.03817.34
5.5.60.0030.03617.31
5.5.50.0070.04317.33
5.5.40.0030.04617.24
5.5.30.0030.03817.19
5.5.20.0030.04217.23
5.5.10.0000.04216.96
5.5.00.0070.03717.30
5.4.450.0060.05519.57
5.4.440.0030.04219.33
5.4.430.0000.06319.32
5.4.420.0000.04219.34
5.4.410.0030.03719.21
5.4.400.0000.05219.02
5.4.390.0030.04119.12
5.4.380.0070.03919.11
5.4.370.0040.04019.24
5.4.360.0100.03119.03
5.4.350.0030.05919.02
5.4.340.0030.04918.96
5.4.320.0000.04119.15
5.4.310.0030.03818.97
5.4.300.0030.03718.93
5.4.290.0070.03619.11
5.4.280.0170.03418.90
5.4.270.0030.03719.00
5.4.260.0070.03619.01
5.4.250.0030.03719.10
5.4.240.0070.03419.23
5.4.230.0030.04219.02
5.4.220.0030.05618.88
5.4.210.0090.03819.06
5.4.200.0030.03718.94
5.4.190.0070.03719.18
5.4.180.0100.03319.01
5.4.170.0000.04218.93
5.4.160.0100.06219.23
5.4.150.0030.03918.91
5.4.140.0060.03616.54
5.4.130.0000.03916.64
5.4.120.0060.03116.66
5.4.110.0000.04816.54
5.4.100.0000.04616.54
5.4.90.0070.03016.70
5.4.80.0090.03116.70
5.4.70.0030.03616.68
5.4.60.0030.03316.68
5.4.50.0070.04316.74
5.4.40.0030.03816.73
5.4.30.0030.03316.76
5.4.20.0000.03616.51
5.4.10.0030.03416.39
5.4.00.0030.03215.94
5.3.290.0000.03915.09
5.3.280.0030.03815.09
5.3.270.0030.04015.09
5.3.260.0000.04215.09
5.3.250.0030.03815.09
5.3.240.0040.03615.09
5.3.230.0060.03515.09
5.3.220.0030.04515.09
5.3.210.0030.04015.09
5.3.200.0000.04215.09
5.3.190.0030.03915.09
5.3.180.0070.03615.09
5.3.170.0000.03915.09
5.3.160.0030.03515.09
5.3.150.0030.04315.09
5.3.140.0130.03715.09
5.3.130.0000.04015.09
5.3.120.0030.03515.09
5.3.110.0070.08315.09
5.3.100.0000.03815.09
5.3.90.0100.07115.09
5.3.80.0000.04915.09
5.3.70.0030.06815.09
5.3.60.0090.03415.09
5.3.50.0030.03715.09
5.3.40.0040.03515.09
5.3.30.0000.03915.09
5.3.20.0000.04315.09
5.3.10.0000.03615.09
5.3.00.0030.03615.09
5.2.170.0030.02815.09
5.2.160.0000.03015.09
5.2.150.0030.03015.09
5.2.140.0060.02915.09
5.2.130.0000.03015.09
5.2.120.0000.03215.09
5.2.110.0030.02915.09
5.2.100.0040.03915.09
5.2.90.0000.03615.09
5.2.80.0030.02915.09
5.2.70.0030.03315.09
5.2.60.0030.03415.09
5.2.50.0200.02915.09
5.2.40.0000.03115.09
5.2.30.0000.03115.09
5.2.20.0000.03315.09
5.2.10.0100.02015.09
5.2.00.0000.03015.09
5.1.60.0000.02515.09
5.1.50.0030.02315.09
5.1.40.0170.03415.09
5.1.30.0030.02615.09
5.1.20.0000.02715.09
5.1.10.0000.02815.09
5.1.00.0040.02515.09
5.0.50.0060.01915.09
5.0.40.0060.01815.09
5.0.30.0070.03615.09
5.0.20.0030.01715.09
5.0.10.0000.02815.09
5.0.00.0000.03815.09
4.4.90.0000.01615.09
4.4.80.0030.01315.09
4.4.70.0000.01615.09
4.4.60.0030.01315.09
4.4.50.0000.01615.09
4.4.40.0000.02815.09
4.4.30.0030.01315.09
4.4.20.0030.02015.09
4.4.10.0030.03415.09
4.4.00.0030.03015.09
4.3.110.0030.02715.09
4.3.100.0040.01815.09
4.3.90.0000.02315.09
4.3.80.0260.02315.09
4.3.70.0030.01415.09
4.3.60.0000.01715.09
4.3.50.0030.01515.09
4.3.40.0000.03015.09
4.3.30.0000.01815.09
4.3.20.0040.01815.09
4.3.10.0000.01715.09
4.3.00.0000.01715.09

preferences:
55.74 ms | 401 KiB | 5 Q