3v4l.org

run code in 300+ PHP versions simultaneously
<?php function vassertf($format, array $args) { return vsprintf($format, $args); } var_dump(vassertf('Too many %s placeholders %s', ['foo'])); var_dump(vassertf('Not enough placeholders', ['foo'])); var_dump(vassertf('Correct number of %s placeholders', ['foo']));

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.0070.01418.55
8.3.50.0110.00722.12
8.3.40.0120.00318.88
8.3.30.0070.00719.05
8.3.20.0000.00720.29
8.3.10.0040.00420.48
8.3.00.0000.00819.38
8.2.180.0170.00316.75
8.2.170.0170.00022.96
8.2.160.0130.00020.43
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0040.00422.24
8.2.110.0090.00020.35
8.2.100.0120.00318.03
8.2.90.0040.00419.18
8.2.80.0030.00617.97
8.2.70.0040.00417.38
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0040.00419.66
8.2.30.0040.00417.92
8.2.20.0040.00417.55
8.2.10.0050.00318.04
8.2.00.0040.00417.59
8.1.280.0100.01025.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00723.73
8.1.230.0030.00719.08
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0080.00017.25
8.1.180.0000.00818.10
8.1.170.0000.00818.52
8.1.160.0070.00022.00
8.1.150.0070.00018.81
8.1.140.0040.00417.33
8.1.130.0070.00017.64
8.1.120.0040.00417.27
8.1.110.0000.00717.32
8.1.100.0060.00317.34
8.1.90.0030.00517.30
8.1.80.0030.00317.36
8.1.70.0000.00717.30
8.1.60.0080.00017.55
8.1.50.0040.00417.46
8.1.40.0040.00417.50
8.1.30.0030.00517.52
8.1.20.0070.00017.61
8.1.10.0040.00417.51
8.1.00.0000.00817.46
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0040.00418.35
8.0.270.0040.00417.18
8.0.260.0030.00317.11
8.0.250.0030.00316.97
8.0.240.0000.00716.95
8.0.230.0040.00417.01
8.0.220.0000.00716.79
8.0.210.0000.00716.91
8.0.200.0070.00016.96
8.0.190.0030.00316.84
8.0.180.0080.00016.86
8.0.170.0000.00816.91
8.0.160.0000.00816.88
8.0.150.0000.00716.76
8.0.140.0070.00016.75
8.0.130.0000.00513.34
8.0.120.0040.00416.81
8.0.110.0050.00216.99
8.0.100.0000.00716.77
8.0.90.0040.00416.96
8.0.80.0120.00916.85
8.0.70.0050.00316.86
8.0.60.0000.00816.86
8.0.50.0070.00016.93
8.0.30.0130.01117.06
8.0.20.0060.01317.40
8.0.10.0000.00716.77
8.0.00.0070.01016.70
7.4.330.0000.00515.00
7.4.320.0030.00316.46
7.4.300.0060.00016.43
7.4.290.0000.00716.45
7.4.280.0070.00016.54
7.4.270.0030.00316.52
7.4.260.0030.00316.41
7.4.250.0000.00716.41
7.4.240.0030.00316.44
7.4.230.0000.00716.23
7.4.220.0120.00616.43
7.4.210.0060.00916.59
7.4.200.0050.00316.28
7.4.160.0110.01116.23
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0090.00916.37
7.4.120.0100.00716.40
7.4.110.0040.01316.38
7.4.100.0130.01016.54
7.4.90.0100.00716.54
7.4.80.0070.01019.39
7.4.70.0100.00716.23
7.4.60.0070.01516.27
7.4.50.0030.00316.23
7.4.40.0030.01216.16
7.4.30.0060.01016.40
7.4.00.0070.00714.99
7.3.330.0030.00313.30
7.3.320.0060.00013.16
7.3.310.0000.00816.30
7.3.300.0030.00316.15
7.3.290.0030.01016.21
7.3.280.0060.01216.30
7.3.270.0000.01917.40
7.3.260.0060.01216.40
7.3.250.0060.01016.36
7.3.240.0070.01016.27
7.3.230.0130.00316.40
7.3.210.0030.01416.24
7.3.200.0060.01219.39
7.3.190.0100.00716.29
7.3.180.0080.00816.55
7.3.170.0070.01016.43
7.3.160.0160.00016.35
7.2.330.0120.00616.63
7.2.320.0090.00616.18
7.2.310.0060.01216.54
7.2.300.0070.01016.26
7.2.290.0120.01216.18
7.2.60.0030.01416.84
7.1.200.0030.00915.77
7.1.70.0060.00317.10
7.1.60.0110.00717.22
7.1.50.0110.01116.95
7.1.00.0030.07722.27
7.0.200.0030.00916.67
7.0.140.0030.07322.16
7.0.60.0330.03320.02
7.0.50.0070.08017.86
7.0.40.0030.09020.13
7.0.30.0270.03720.07
7.0.20.0370.06320.07
7.0.10.0000.04720.30
7.0.00.0100.08320.06
5.6.280.0000.07720.99
5.6.210.0070.08320.50
5.6.200.0070.08318.23
5.6.190.0070.07020.61
5.6.180.0300.07720.33
5.6.170.0300.04720.55
5.6.160.0130.04320.57
5.6.150.0130.04018.16
5.6.140.0030.04718.18
5.6.130.0130.07318.18
5.6.120.0070.07021.12
5.6.110.0030.04321.02
5.6.100.0170.04721.02
5.6.90.0100.05321.11
5.6.80.0100.03320.38
5.5.350.0230.08320.36
5.5.340.0100.03718.00
5.5.330.0070.06320.27
5.5.320.0170.04320.31
5.5.310.0270.04720.51
5.5.300.0070.07717.96
5.5.290.0100.07718.03
5.5.280.0030.04020.65
5.5.270.0130.08020.79
5.5.260.0070.03720.97
5.5.250.0100.08020.58
5.5.240.0070.04020.07
5.4.450.2570.04319.57
5.4.440.0070.04319.56
5.4.430.0970.07319.25
5.4.420.3830.03719.48
5.4.410.3900.03719.44
5.4.400.3970.03719.11
5.4.390.3930.04719.06
5.4.380.3730.03719.19
5.4.370.3870.03719.25
5.4.360.3970.04019.04
5.4.350.3300.04318.96
5.4.340.3900.04019.24
5.4.320.3930.04318.93
5.4.310.4000.03319.22
5.4.300.3670.03719.08
5.4.290.3930.03018.92
5.4.280.4070.04018.96
5.4.270.1870.03319.13
5.4.260.0070.04319.06
5.4.250.3730.03719.03
5.4.240.4230.04319.23
5.4.230.3530.04719.11
5.4.220.3400.04019.18
5.4.210.3870.03719.05
5.4.200.3630.04319.15
5.4.190.3970.03718.92
5.4.180.3900.03319.14
5.4.170.0100.07019.02
5.4.160.2100.05318.90
5.4.150.3700.03719.20
5.4.140.4070.04016.33
5.4.130.3870.03716.45
5.4.120.3570.03316.50
5.4.110.3930.03016.54
5.4.100.3730.05016.23
5.4.90.3800.04016.26
5.4.80.3800.03716.48
5.4.70.4030.02716.66
5.4.60.3830.04016.32
5.4.50.3770.03016.19
5.4.40.3670.03316.45
5.4.30.3730.04316.45
5.4.20.3700.03316.19
5.4.10.3270.03716.51
5.4.00.3030.03715.81
5.3.290.3900.03714.55
5.3.280.3570.04014.75
5.3.270.3900.04314.66
5.3.260.0070.04714.76
5.3.250.3570.04014.63
5.3.240.3200.04014.61
5.3.230.3630.03714.61
5.3.220.3900.04014.64
5.3.210.3730.04014.71
5.3.200.3930.03314.61
5.3.190.3900.03714.73
5.3.180.3600.03714.45
5.3.170.3970.03314.73
5.3.160.3630.03714.57
5.3.150.3900.03014.62
5.3.140.3700.03714.70
5.3.130.3630.03714.57
5.3.120.3730.03314.46
5.3.110.3930.04014.60
5.3.100.3670.04314.09
5.3.90.3830.03714.05
5.3.80.5030.03714.07
5.3.70.3400.04014.02
5.3.60.3870.04014.00
5.3.50.3770.03713.93
5.3.40.3800.03313.84
5.3.30.3730.03314.06
5.3.20.3830.03713.69
5.3.10.3800.03313.70
5.3.00.1100.02713.80
5.2.170.3070.02711.09
5.2.160.3070.03311.19
5.2.150.3100.02711.19
5.2.140.3230.02711.07
5.2.130.2970.02711.02
5.2.120.3030.02711.05
5.2.110.1330.03011.06
5.2.100.2000.03311.16
5.2.90.2600.03011.26
5.2.80.2200.03011.15
5.2.70.2500.02310.98
5.2.60.2630.02711.06
5.2.50.2570.02310.96
5.2.40.1770.02711.13
5.2.30.2400.03010.91
5.2.20.1870.02711.02
5.2.10.2430.03011.04
5.2.00.2670.03310.67
5.1.60.2600.02010.05
5.1.50.2430.02710.14
5.1.40.2430.0239.95
5.1.30.2700.02310.39
5.1.20.2530.03010.24
5.1.10.2230.02010.02
5.1.00.1900.02010.06
5.0.50.1270.0178.61
5.0.40.1200.0208.41
5.0.30.1470.0308.19
5.0.20.1230.0208.22
5.0.10.1200.0208.32
5.0.00.1500.0338.07
4.4.90.1170.0137.40
4.4.80.0800.0137.40
4.4.70.1270.0107.40
4.4.60.1170.0177.40
4.4.50.1470.0207.40
4.4.40.1230.0277.40
4.4.30.1270.0137.40
4.4.20.1230.0177.40
4.4.10.1370.0207.40
4.4.00.1330.0307.40
4.3.110.1430.0177.40
4.3.100.1270.0177.40
4.3.90.1200.0177.40
4.3.80.1170.0277.40
4.3.70.1170.0177.40
4.3.60.1300.0107.40
4.3.50.1330.0177.40
4.3.40.1300.0277.40
4.3.30.0870.0237.40
4.3.20.0870.0177.40
4.3.10.0870.0277.40
4.3.00.0730.0137.40

preferences:
68.64 ms | 401 KiB | 5 Q