3v4l.org

run code in 300+ PHP versions simultaneously
<?php $typeHandlers = [ 's', 'd','u', 'c', 'o', 'x', 'X', 'b', 'g', 'G', 'e', 'E', 'f', 'F', '+d', ]; $testNum = 22.12314123124; foreach($typeHandlers as $type){ printf("Type $type : %".$type."\n", $testNum); } $testArr = [ +1231241.12312312312, -1231241241.22231, 0.00000000000000000000001, 'stringy', ]; foreach($typeHandlers as $t){ printf("Type $t : %".$t." \n %".$t." \n %".$t." \n %".$t." \n", $testArr[0],$testArr[1], $testArr[2], $testArr[3]); }

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.4.20.0120.00618.93
8.4.10.0160.00319.59
8.3.140.0040.01417.09
8.3.130.0000.00818.29
8.3.120.0100.00618.90
8.3.110.0030.00620.94
8.3.100.0050.00316.66
8.3.90.0080.00026.77
8.3.80.0090.00316.78
8.3.70.0130.00316.63
8.3.60.0120.00918.33
8.3.50.0120.00616.42
8.3.40.0110.00718.67
8.3.30.0040.01118.84
8.3.20.0050.00321.89
8.3.10.0060.00319.07
8.3.00.0050.00321.80
8.2.260.0110.00716.30
8.2.250.0000.01416.37
8.2.240.0150.00017.29
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0080.00826.77
8.2.200.0060.00316.50
8.2.190.0090.01316.63
8.2.180.0060.01225.92
8.2.170.0110.00418.89
8.2.160.0120.00622.96
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0060.00320.98
8.2.110.0070.00322.08
8.2.100.0060.00619.03
8.2.90.0040.00417.88
8.2.80.0040.00417.97
8.2.70.0030.00617.93
8.2.60.0030.00518.16
8.2.50.0000.00719.22
8.2.40.0020.00519.48
8.2.30.0040.00420.34
8.2.20.0000.01018.13
8.2.10.0030.00618.89
8.2.00.0040.00418.06
8.1.310.0040.00418.75
8.1.300.0030.00618.45
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0060.00322.19
8.1.260.0050.00326.35
8.1.250.0000.01028.09
8.1.240.0030.00722.19
8.1.230.0030.00719.14
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0090.00017.36
8.1.190.0080.00017.22
8.1.180.0060.00318.10
8.1.170.0090.00018.52
8.1.160.0070.00018.90
8.1.150.0000.00818.90
8.1.140.0000.00720.20
8.1.130.0030.00320.14
8.1.120.0000.01017.37
8.1.110.0000.00717.40
8.1.100.0030.00617.43
8.1.90.0030.00717.47
8.1.80.0070.00017.48
8.1.70.0050.00517.37
8.1.60.0040.00417.55
8.1.50.0070.00017.46
8.1.40.0000.00817.55
8.1.30.0040.00417.68
8.1.20.0040.00417.53
8.1.10.0040.00417.55
8.1.00.0050.00317.38
8.0.300.0000.00719.62
8.0.290.0050.00316.88
8.0.280.0070.00018.33
8.0.270.0070.00017.25
8.0.260.0030.00318.47
8.0.250.0040.00416.91
8.0.240.0030.00317.00
8.0.230.0040.00417.01
8.0.220.0040.00316.78
8.0.210.0000.00716.86
8.0.200.0040.00416.98
8.0.190.0050.00217.01
8.0.180.0070.00016.93
8.0.170.0040.00416.81
8.0.160.0040.00416.90
8.0.150.0000.00816.85
8.0.140.0040.00416.89
8.0.130.0030.00313.38
8.0.120.0000.00816.81
8.0.110.0050.00216.83
8.0.100.0020.00516.90
8.0.90.0050.00217.00
8.0.80.0090.00716.88
8.0.70.0000.00716.96
8.0.60.0030.00516.72
8.0.50.0000.00816.91
8.0.30.0080.01117.18
8.0.20.0200.01517.15
8.0.10.0070.00016.91
8.0.00.0080.01016.81
7.4.330.0000.00615.55
7.4.320.0030.00616.57
7.4.300.0000.00716.47
7.4.290.0000.00816.53
7.4.280.0000.00816.61
7.4.270.0000.00916.61
7.4.260.0030.00516.60
7.4.250.0070.00016.63
7.4.240.0030.00616.55
7.4.230.0000.00716.36
7.4.220.0050.00316.69
7.4.210.0060.00916.62
7.4.200.0000.00816.46
7.4.160.0110.00716.54
7.4.140.0120.00817.86
7.4.130.0110.00716.35
7.4.120.0120.00616.47
7.4.110.0180.00316.66
7.4.100.0080.00816.55
7.4.90.0060.01216.60
7.4.80.0100.00619.39
7.4.70.0070.01016.54
7.4.60.0100.00716.41
7.4.50.0030.01216.14
7.4.40.0130.00316.32
7.4.00.0110.00115.14
7.3.330.0000.00513.08
7.3.320.0000.00513.18
7.3.310.0000.00616.16
7.3.300.0000.00716.25
7.3.290.0120.00316.40
7.3.280.0070.01116.34
7.3.260.0110.00916.46
7.3.240.0080.00916.49
7.3.230.0160.00816.41
7.3.210.0090.00916.61
7.3.200.0120.00816.47
7.3.190.0050.01116.32
7.3.180.0110.00616.66
7.3.170.0120.01216.69
7.3.160.0190.00816.57
7.3.120.0090.00714.77
7.3.110.0100.00814.95
7.3.100.0060.01014.97
7.3.90.0070.00615.03
7.3.80.0080.00615.03
7.3.70.0050.00814.70
7.3.60.0030.00914.71
7.3.50.0080.00714.80
7.3.40.0070.00714.84
7.3.30.0060.00614.87
7.3.20.0100.00316.09
7.3.10.0100.00815.95
7.3.00.0060.01016.14
7.2.330.0170.00016.79
7.2.320.0080.01116.59
7.2.310.0060.01016.70
7.2.300.0120.00616.53
7.2.290.0100.01316.75
7.2.250.0040.01514.81
7.2.240.0020.01315.23
7.2.230.0030.00915.18
7.2.220.0050.00815.20
7.2.210.0060.00615.04
7.2.200.0050.00814.95
7.2.190.0090.00714.97
7.2.180.0100.00315.03
7.2.170.0070.00915.02
7.2.160.0040.00715.23
7.2.150.0050.00816.16
7.2.140.0060.00716.42
7.2.130.0050.00816.24
7.2.120.0250.00616.29
7.2.110.0070.00816.27
7.2.100.0120.00816.38
7.2.90.0090.00816.47
7.2.80.0100.00816.22
7.2.70.0080.00916.29
7.2.60.0070.00516.34
7.2.50.0080.00916.41
7.2.40.0060.00816.33
7.2.30.0050.01016.43
7.2.20.0070.00616.17
7.2.10.0060.00516.32
7.2.00.0050.00716.31
7.1.330.0080.00815.74
7.1.320.0030.00915.86
7.1.310.0020.01215.73
7.1.300.0000.01515.96
7.1.290.0000.01415.85
7.1.280.0110.00515.26
7.1.270.0090.00315.31
7.1.260.0080.00815.15
7.1.250.0080.00915.23
7.1.240.0000.01916.03
7.1.230.0060.00615.61
7.1.220.0030.01015.91
7.1.210.0000.01115.71
7.1.200.0130.00315.96
7.1.190.0030.01015.78
7.1.180.0040.01115.53
7.1.170.0040.00415.86
7.1.160.0000.01415.79
7.1.150.0000.01415.89
7.1.140.0000.01115.72
7.1.130.0030.00615.82
7.1.120.0040.01115.80
7.1.110.0070.00715.64
7.1.100.0030.01015.59
7.1.90.0030.00616.02
7.1.80.0040.00416.01
7.1.70.0100.00015.91
7.1.60.0060.00615.91
7.1.50.0030.01015.82
7.1.40.0030.01015.85
7.1.30.0040.01115.65
7.1.20.0150.00415.68
7.1.10.0070.01115.95
7.1.00.0100.00015.87

preferences:
30.9 ms | 403 KiB | 5 Q